Navigation
API > API/Plugins > API/Plugins/ChaosClothAssetTools > API/Plugins/ChaosClothAssetTools/FClothPatternToDynamicMeshMappin-
Description
Attaches or replaces triangle mapping data to the provided mesh. Note: Failure occurs if the DynamicMesh does not have attributes enabled or if the provided array is not long enough to provide a mapping value for each DynamicMesh triangle id.
| Name | AttachTriangleMappingData |
| Type | function |
| Header File | /Engine/Plugins/ChaosClothAssetEditor/Source/ChaosClothAssetTools/Public/ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h |
| Include Path | #include "ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h" |
| Source | /Engine/Plugins/ChaosClothAssetEditor/Source/ChaosClothAssetTools/Private/ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.cpp |
static bool AttachTriangleMappingData
(
const TArray < int32 > & TriangleToOriginalVertexIDMap,
UE::Geometry::FDynamicMesh3 & InOutMesh
)
false on failure (no attribute will be attached to the DynamicMesh in this case)
Parameters
| Name | Remarks |
|---|---|
| TriangleToOriginalVertexIDMap | an array that maps each DynamicMesh triangle id to the associated original triangle id. |