Navigation
API > API/Runtime > API/Runtime/SkeletalMeshDescription > API/Runtime/SkeletalMeshDescription/FSkeletalMeshOperations
Description
Applies the Rig / Skinning found in RigMeshDescription to the Geometry found in GeomeshDescription Desired behavior of this function was targeting FSkeletalMeshImportData::ApplyRigToGeo. Important distinction however: FSkeletalMeshImportData::ApplyRigToGeo seem to work based on VertexInstances, it also checks the VertexCandidate Normal and UVs and only finds the candidate legitimate if they match between Rig and Geo) As Influences (BoneIndex and BoneWeights) are Vertex (NOT VertexInstance) dependent. Whilst original implementation in FSkeletalMeshImportData::ApplyRigToGeo was checking and validating against normals and UVs for NearestWedges, with current implementation we try the NearestVertices with the same principle as the FindMatchingPositionVertexIndexes. (aka based on GetSmallestDeltaBetweenTriangleLists)
| Name | ApplyRigToGeo |
| Type | function |
| Header File | /Engine/Source/Runtime/SkeletalMeshDescription/Public/SkeletalMeshOperations.h |
| Include Path | #include "SkeletalMeshOperations.h" |
| Source | /Engine/Source/Runtime/SkeletalMeshDescription/Private/SkeletalMeshOperations.cpp |
static void ApplyRigToGeo
(
FMeshDescription & RigMeshDescription,
FMeshDescription & GeoMeshDescription
)