Navigation
API > API/Runtime > API/Runtime/SkeletalMeshDescription > API/Runtime/SkeletalMeshDescription/FSkeletalMeshOperations
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool GetPosedMesh
(
const FMeshDescription& InSourceMesh, |
Returns a mesh in the pose given by the component-space transforms passed in. | SkeletalMeshOperations.h | |
static bool GetPosedMesh
(
const FMeshDescription& InSourceMesh, |
Returns a mesh in the pose given by the bone-space transforms passed in. | SkeletalMeshOperations.h |
GetPosedMesh(const FMeshDescription &, FMeshDescription &, TConstArrayView< FTransform >, const FName, const TMap< FName, float > &)
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_. 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 | GetPosedMesh |
| 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 GetPosedMesh
(
const FMeshDescription & InSourceMesh,
FMeshDescription & OutTargetMesh,
TConstArrayView< FTransform > InComponentSpaceTransforms,
const FName InSkinWeightProfile,
const TMap < FName , float > & InMorphTargetWeights
)
`true_ if the operation succeeded.
Parameters
| Name | Remarks |
|---|---|
| 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. |
GetPosedMesh(const FMeshDescription &, FMeshDescription &, const TMap< FName, FTransform > &, const FName, const TMap< FName, float > &)
Description
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.
| Name | GetPosedMesh |
| 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 GetPosedMesh
(
const FMeshDescription & InSourceMesh,
FMeshDescription & OutTargetMesh,
const TMap < FName , FTransform > & InBoneSpaceTransforms,
const FName InSkinWeightProfile,
const TMap < FName , float > & InMorphTargetWeights
)
`true_ if the operation succeeded.
Parameters
| Name | Remarks |
|---|---|
| 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. |