Navigation
API > API/Runtime > API/Runtime/SkeletalMeshDescription > API/Runtime/SkeletalMeshDescription/FSkeletalMeshOperations
Description
Returns a mesh in the pose given by the component-space transforms passed in. The list of transforms should match exactly the list of bones stored on the mesh. If not, the function fails and returns false_. If there are no skin weights on the mesh, or the named skin weight profile doesn't exist, the function also returns false_. if bInWriteBonePose is true, the resulting bones on the mesh will have their bone-space transforms updated so that the same mesh can be re-posed as needed.
| Name | GetPosedMeshInPlace |
| 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 bool GetPosedMeshInPlace
(
FMeshDescription & InOutTargetMesh,
TConstArrayView< FTransform > InComponentSpaceTransforms,
const FName InSkinWeightProfile,
const TMap < FName , float > & InMorphTargetWeights,
bool bInSkipRecomputeNormalsTangents,
bool bInWriteBonePose
)
`true_ if the operation succeeded.
Parameters
| Name | Remarks |
|---|---|
| InOutTargetMesh | rest pose mesh to be deformed in place |
| InComponentSpaceTransforms | The component space transforms used to move the mesh joints for deforming, using linear-blend skinning. |
| InSkinWeightProfile | The skin weight profile to use as the source of skin weights for the deformation. |
| InMorphTargetWeights | Optional morph target weights to apply. Any morph target that doesn't exist is ignored. |
| bInSkipRecomputeNormalsTangents | skip recompute normals and tangents to improve performance |
| bInWriteBonePose | whether to write the current bone pose into the mesh description. |