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,
TConstArrayView< FTransform > InComponentSpaceTransforms,
const FName InSkinWeightProfile,
const TMap < FName , float > & InMorphTargetWeights
)
Remarks
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_. 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. |
| 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. |