Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TDynamicVertexSkinWeightsAttribu-
Description
Re-index bone indices of the skin weights from one reference skeleton (represented by an array of bone names) to another.
Reasons for failure are:
- bone index of one of the bone weights is larger than the number of bones in FromRefSkeleton, meaning the weights most likely were not computed with respect to the FromRefSkeleton.
- one of the bone weights references a bone in FromRefSkeleton that doesn't exist in ToRefSkeleton.
- ToRefSkeleton contains duplicates.
FromRefSkeleton can contain bones that are not present in ToRefSkeleton as long as those bones are not referenced by any of the weights.
| Name | ReindexBoneIndicesToSkeleton |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicVertexSkinWeightsAttribute.h |
| Include Path | #include "DynamicMesh/DynamicVertexSkinWeightsAttribute.h" |
bool ReindexBoneIndicesToSkeleton
(
const TArray < FName > & FromRefSkeleton,
const TArray < FName > & ToRefSkeleton
)
true on success, false otherwise
Parameters
| Name | Remarks |
|---|---|
| FromRefSkeleton | The reference skeleton that the current skin weights are indexed against. |
| ToRefSkeleton | The new reference skeleton that should be used to reindex the weights. |