Navigation
API > API/Runtime > API/Runtime/SkeletalMeshDescription > API/Runtime/SkeletalMeshDescription/FSkeletalMeshOperations > API/Runtime/SkeletalMeshDescription/FSkeletalMeshOperations/GetPosedMesh
References
| Module | SkeletalMeshDescription |
| Header | /Engine/Source/Runtime/SkeletalMeshDescription/Public/SkeletalMeshOperations.h |
| Include | #include "SkeletalMeshOperations.h" |
| Source | /Engine/Source/Runtime/SkeletalMeshDescription/Private/SkeletalMeshOperations.cpp |
static bool GetPosedMesh
(
const FMeshDescription & InSourceMesh,
FMeshDescription & OutTargetMesh,
const TMap < FName , FTransform > & InBoneSpaceTransforms,
const FName InSkinWeightProfile,
const TMap < FName , float > & InMorphTargetWeights
)
Remarks
Returns a mesh in the pose given by the bone-space transforms passed in. The transforms simply replace the matching ref pose transforms stored in the bone data on the mesh. Any named transform, that does not match a bone on the mesh, is ignored.
If there are no skin weights on the mesh, or the named skin weight profile doesn't exist, the function also returns false_. The resulting bones on the mesh will have their bone-space transforms updated so that the same mesh can be re-posed as needed.
true_ if the operation succeeded.
Parameters
| Name | Description |
|---|---|
| InSourceMesh | The mesh to deform. |
| OutTargetMesh | The deformed mesh result. |
| InBoneSpaceTransforms | A map of named bone-space transforms. |
| 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. |