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/CollectionSelectionFacade.h |
| Include | #include "GeometryCollection/Facades/CollectionSelectionFacade.h" |
Syntax
class FSelectionFacade
Remarks
Defines common API for storing a sib indexing of a separate group. For example, to store a subset of vertices defined in the group "VerticesGroup", use the function : Key = this->AddSelection({1,2,3,4}); The key can be saved and later used to query the values: TArray
The following groups are created on the collection based on which API is called.
- FindAttribute
>(FVertexSetInterface::IndexAttribute, );
- FindAttribute
>(FVertexSetInterface::IndexAttribute, ); - FindAttribute
>(FVertexSetInterface::WeightAttribute, );
- FindAttribute
>(FVertexSetInterface::IndexAttribute, ); - FindAttribute
(FVertexSetInterface::BoneIndexAttribute, );
- FindAttribute
>(FVertexSetInterface::IndexAttribute, ); - FindAttribute
>(FVertexSetInterface::WeightAttribute, ); - FindAttribute
(FVertexSetInterface::BoneIndexAttribute, );
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSelectionFacade
(
FManagedArrayCollection& InSelf |
FSelectionFacade Constuctor | ||
FSelectionFacade
(
const FManagedArrayCollection& InSelf |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSelectionKey | AddSelection
(
const TArray< int32 >& Indices, |
Add the indices to the FVertexSetInterface::UnboundGroup | |
| FSelectionKey | AddSelection
(
const TArray< int32 >& Indices, |
Add the indices to the FVertexSetInterface::WeightedUnboundGroup | |
| FSelectionKey | Add the indices to the FVertexSetInterface::BoundGroup | ||
| FSelectionKey | Add the indices to the FVertexSetInterface::BoundGroup | ||
| void | GetSelection
(
const FSelectionKey& Key, |
Return the vertex list from the given key | |
| void | GetSelection
(
const FSelectionKey& Key, |
Return the vertex list, bone index, and weights from the given key | |
| void | GetSelection
(
const FSelectionKey& Key, |
Return the vertex list and bone index from the given key | |
| void | GetSelection
(
const FSelectionKey& Key, |
Return the vertex list, bone index, and weights from the given key | |
| bool | IsConst () |
Is the facade defined constant. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FSelectionKey |
Constants
| Name | Description |
|---|---|
| BoneIndexAttribute | |
| BoundGroup | |
| IndexAttribute | Attributes. |
| UnboundGroup | Groups |
| WeightAttribute | |
| WeightedBoundGroup | |
| WeightedUnboundGroup |