Navigation
API > API/Runtime > API/Runtime/Chaos
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, );
| Name | FSelectionFacade |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/Facades/CollectionSelectionFacade.h |
| Include Path | #include "GeometryCollection/Facades/CollectionSelectionFacade.h" |
Syntax
class FSelectionFacade
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSelectionFacade
(
FManagedArrayCollection& InSelf |
FSelectionFacade Constuctor | GeometryCollection/Facades/CollectionSelectionFacade.h | |
FSelectionFacade
(
const FManagedArrayCollection& InSelf |
GeometryCollection/Facades/CollectionSelectionFacade.h |
Structs
| Name | Remarks |
|---|---|
| FSelectionKey |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| BoneIndexAttribute | const FName | GeometryCollection/Facades/CollectionSelectionFacade.h | |
| BoundGroup | const FName | GeometryCollection/Facades/CollectionSelectionFacade.h | |
| IndexAttribute | const FName | Attributes. | GeometryCollection/Facades/CollectionSelectionFacade.h |
| UnboundGroup | const FName | Groups | GeometryCollection/Facades/CollectionSelectionFacade.h |
| WeightAttribute | const FName | GeometryCollection/Facades/CollectionSelectionFacade.h | |
| WeightedBoundGroup | const FName | GeometryCollection/Facades/CollectionSelectionFacade.h | |
| WeightedUnboundGroup | const FName | GeometryCollection/Facades/CollectionSelectionFacade.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Collection | FManagedArrayCollection * | GeometryCollection/Facades/CollectionSelectionFacade.h | ||
| ConstCollection | const FManagedArrayCollection & | Const collection will be a null pointer, while non-const will be valid. | GeometryCollection/Facades/CollectionSelectionFacade.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSelectionKey AddSelection
(
const TArray< int32 >& Indices, |
Add the indices to the FVertexSetInterface::UnboundGroup | GeometryCollection/Facades/CollectionSelectionFacade.h | |
FSelectionKey AddSelection
(
const TArray< int32 >& Indices, |
Add the indices to the FVertexSetInterface::WeightedUnboundGroup | GeometryCollection/Facades/CollectionSelectionFacade.h | |
FSelectionKey AddSelection
(
const int32 BoneIndex, |
Add the indices to the FVertexSetInterface::BoundGroup | GeometryCollection/Facades/CollectionSelectionFacade.h | |
FSelectionKey AddSelection
(
const int32 BoneIndex, |
Add the indices to the FVertexSetInterface::BoundGroup | GeometryCollection/Facades/CollectionSelectionFacade.h | |
void GetSelection
(
const FSelectionKey& Key, |
Return the vertex list from the given key | GeometryCollection/Facades/CollectionSelectionFacade.h | |
void GetSelection
(
const FSelectionKey& Key, |
Return the vertex list, bone index, and weights from the given key | GeometryCollection/Facades/CollectionSelectionFacade.h | |
void GetSelection
(
const FSelectionKey& Key, |
Return the vertex list and bone index from the given key | GeometryCollection/Facades/CollectionSelectionFacade.h | |
void GetSelection
(
const FSelectionKey& Key, |
Return the vertex list, bone index, and weights from the given key | GeometryCollection/Facades/CollectionSelectionFacade.h | |
bool IsConst() |
Is the facade defined constant. | GeometryCollection/Facades/CollectionSelectionFacade.h |