Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/GeometryCollection > API/Runtime/Chaos/GeometryCollection/Facades
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/Facades/CollectionVertexBoneWeightsFacade.h |
| Include | #include "GeometryCollection/Facades/CollectionVertexBoneWeightsFacade.h" |
Syntax
class FVertexBoneWeightsFacade
Remarks
Defines common API for storing a vertex weights bound to a bone. This mapping is from the the vertex to the bone index. The FSelectionFacad will store the mapping from the BoneIndex to the vertex. Usage: FVertexBoneWeightsFacade::AddBoneWeights(this, FSelectionFacade(this) );
Then arrays can be accessed later by: const TManagedArray< TArray
The following attributes are created on the collection:
- FindAttribute<TArray
>(FVertexSetInterface::IndexAttribute, FGeometryCollection::VerticesGroup); - FindAttribute<TArray
>(FVertexSetInterface::WeightAttribute, FGeometryCollection::VerticesGroup);
Constructors
| Type | Name | Description | |
|---|---|---|---|
FVertexBoneWeightsFacade
(
FManagedArrayCollection& InSelf |
FVertexBoneWeightsFacade Constuctor | ||
FVertexBoneWeightsFacade
(
const FManagedArrayCollection& InSelf |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddBoneWeight
(
int32 VertexIndex, |
Add bone weight based on the kinematic bindings. | |
| void | Add bone weight based on the kinematic bindings. | ||
| void | DefineSchema () |
Define the facade | |
| const TManagedArray< TArray< int32 > > * | Return the vertex bone indices from the collection. Null if not initialized. | ||
| const TManagedArray< TArray< float > > * | Return the vertex bone weights from the collection. Null if not initialized. | ||
| const TManagedArray< TArray< int32 > > & | |||
| const TManagedArray< TArray< float > > & | |||
| bool | IsConst () |
Is the Facade const | |
| bool | IsValid () |
Is the Facade defined on the collection? |
Constants
| Name | Description |
|---|---|
| BoneIndexAttributeName | Attributes. |
| BoneWeightAttributeName |