Navigation
API > API/Runtime > API/Runtime/ClothingSystemRuntimeCommon > API/Runtime/ClothingSystemRuntimeCommon/Utils
References
| Module | ClothingSystemRuntimeCommon |
| Header | /Engine/Source/Runtime/ClothingSystemRuntimeCommon/Public/Utils/ClothingMeshUtils.h |
| Include | #include "Utils/ClothingMeshUtils.h" |
namespace ClothingMeshUtils
{
void ClothingMeshUtils::GenerateMeshToMeshVertData
(
TArray< FMeshToMeshVertData > & OutMeshToMeshVertData,
const ClothMeshDesc & TargetMesh,
const ClothMeshDesc & SourceMesh,
const FPointWeightMap * MaxDistances,
bool bUseSmoothTransitions,
bool bUseMultipleInfluences,
float KernelMaxDistance,
const TArray< FMeshToMeshFilterSet > & FilterSets
)
}
Remarks
Given mesh information for two meshes, generate a list of skinning data to embed TargetMesh in SourceMesh
Parameters
| Name | Description |
|---|---|
| OutMeshToMeshVertData | Final skinning data |
| TargetMesh | Mesh data for the mesh we are embedding |
| SourceMesh | Mesh data for the mesh we are embedding into |
| MaxDistances | Fixed positions mask used to update the vertex contributions, or null if the update is not required |
| bUseSmoothTransitions | Set blend weight to smoothen transitions between the fixed and deformed vertices when updating the vertex contributions |
| bUseMultipleInfluences | Whether to take a weighted average of influences from multiple source triangles |
| KernelMaxDistance | Max distance parameter for weighting kernel for when using multiple influences |
| FilterSets | A set of source triangle indices to filter the search from, will use all source triangles if empty |