Navigation
API > API/Runtime > API/Runtime/AnimationCore
References
| Module | AnimationCore |
| Header | /Engine/Source/Runtime/AnimationCore/Public/BoneWeights.h |
| Include | #include "BoneWeights.h" |
Syntax
class FBoneWeights
Remarks
A simple container for per-vertex influence of bones and their weights.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FBoneWeights () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| RangedForConstIteratorType | begin () |
||
| FBoneWeights | Blend
(
const FBoneWeights& InA, |
Blend two bone weights together, making sure to add in every influence from both, using the given settings. | |
| FBoneWeights | Blend
(
const FBoneWeights& InA, |
Blend three bone weights via barycentric coordinates using the given settings. | |
| FBoneWeights | Create
(
const FBoneIndexType* InBones, |
A helper to create a FBoneWeights container from separated bone index and weight arrays. | |
| FBoneWeights | Create
(
const FBoneIndexType InBones, |
A helper to create a FBoneWeights container from FSoftSkinVertex data structure. | |
| FBoneWeights | Create
(
TBoneWeights< OtherContainerAdapter > InBoneWeights, |
A helper to create FBoneWeights container from a TBoneWeights derivative object | |
| FBoneWeights | Create
(
TArrayView< const FBoneWeight > BoneWeights, |
A helper to create FBoneWeights container from a TArray of FBoneWeight objects. | |
| RangedForConstIteratorType | end () |
||
| int32 | FindWeightIndexByBone
(
FBoneIndexType InBoneIndex |
Find the bone weight corresponding to the given bone index. | |
| int32 | GetTypeHash () |
||
| int32 | Num () |
Return the number of bone weights in this container. | |
| bool | RemoveBoneWeight
(
FBoneIndexType InBone, |
Removes a specific bone from the list of weights, re-normalizing and pruning bones, if needed. | |
| void | Renormalize
(
const FBoneWeightsSettings& InSettings |
Force normalization of weights. | |
| void | |||
| bool | SetBoneWeight
(
FBoneWeight InBoneWeight, |
Set a new bone weight. | |
| bool | SetBoneWeight
(
FBoneIndexType InBone, |
||
| TArrayView< const FBoneWeight > | ToArrayView () |
Returns the FBoneWeight list as an array view | |
| FString | ToString () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FBoneWeights& InBoneWeight |
Returns true if this container's values are equal to the other container's values. | |
| const FBoneWeight & | operator[]
(
int32 Index |
Return the weight at index Index. | |
| bool | operator==
(
const FBoneWeights& InBoneWeight |
Returns true if all of this container's values and count are equal to the other container's values and count. |
Typedefs
| Name | Description |
|---|---|
| BoneWeightArrayT | |
| BoneWeightsTempAllocatorT | |
| FArrayWrapper | |
| RangedForConstIteratorType | Ranged-based for loop compatibility but only the const version. |