Navigation
API > API/Plugins > API/Plugins/ChaosClothAssetTools
This uses the NonManifoldMapping attribute for vertices, and a new attribute for triangles.
| Name | FClothPatternToDynamicMeshMappingSupport |
| Type | class |
| Header File | /Engine/Plugins/ChaosClothAssetEditor/Source/ChaosClothAssetTools/Public/ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h |
| Include Path | #include "ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h" |
Syntax
class FClothPatternToDynamicMeshMappingSupport : public UE::Geometry::FNonManifoldMappingSupport
Inheritance Hierarchy
- FNonManifoldMappingSupport → FClothPatternToDynamicMeshMappingSupport
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FClothPatternToDynamicMeshMappingSupport
(
const UE::Geometry::FDynamicMesh3& Mesh |
ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ClothMeshTIDsAttrName | const FName | Name used to identify triangle attribute data generated during conversion to a DynamicMesh in the case that the source was non-manifold. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetOriginalTriangleID
(
const int32 Tid |
Return the triangle ID in the original cloth data used to generate this DynamicMesh associated with the provided triangle id. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h | |
int32 GetOriginalVertexID
(
const int32 vid |
Return the vertex ID in the original cloth data used to generate this DynamicMesh associated with the provided vertex id. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h | |
bool IsMappedTriangleID
(
const int32 Tid |
Return true if the provided DynamicMesh triangle id resulted from a remapped triangle in the source data. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h | |
bool IsMappedTriangleInSource() |
Return true if attribute data indicates that the source data that was converted to this DynamicMesh contained mapped triangles. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h | |
bool IsMappedVertexID
(
const int32 vid |
Return true if the provided DynamicMesh vertex id resulted from a remapped vertex in the source data. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h | |
bool IsMappedVertexInSource() |
Return true if attribute data indicates that the source data that was converted to this DynamicMesh contained mapped vertices. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h | |
void Reset
(
const UE::Geometry::FDynamicMesh3& Mesh |
Update the support for a new DynamicMesh. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool AttachTriangleMappingData
(
const TArray< int32 >& TriangleToOriginalVertexIDMap, |
Attaches or replaces triangle mapping data to the provided mesh. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h | |
static bool AttachVertexMappingData
(
const TArray< int32 >& VertexToOriginalVertexIDMap, |
Attaches or replaces vertex mapping data to the provided mesh. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h | |
static void RemoveAllMappingData
(
UE::Geometry::FDynamicMesh3& InOutMesh |
Removes all mapping data. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h | |
static void RemoveTriangleMappingData
(
UE::Geometry::FDynamicMesh3& InOutMesh |
ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h | ||
static void RemoveVertexMappingData
(
UE::Geometry::FDynamicMesh3& InOutMesh |
Removes triangle mapping data. | ChaosClothAsset/ClothPatternToDynamicMeshMappingSupport.h |