Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Selections
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Selections/GeometrySelection.h |
| Include | #include "Selections/GeometrySelection.h" |
Syntax
struct FGeometrySelection
Remarks
FGeometrySelection represents a subset of geometric elements of a larger object, for example a Mesh (currently the only use case). The main selection is represented via 64-bit unsigned integers. The integers are stored in a TSet for efficient unique adds and removals. No assumptions are made about the values, they could be (eg) mesh indices, IDs of some type, or even pointer values.
Variables
| Type | Name | Description | |
|---|---|---|---|
| EGeometryElementType | ElementType | Type of geometric element represented by this selection, if applicable | |
| TSet< uint64 > | Selection | Set of selected items/elements | |
| EGeometryTopologyType | TopologyType | Type of geometric topology this selection is defined relative to, if applicable |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | InitializeTypes
(
const FGeometrySelection& FromSelection |
Initialize the Element and Topology types for this Selection based on another Selection | |
| void | InitializeTypes
(
EGeometryElementType ElementTypeIn, |
Initialize the Element and Topology types for this Selection | |
| bool | IsEmpty () |
||
| bool | IsSameType
(
const FGeometrySelection& OtherSelection |
||
| int32 | Num () |
||
| void | Reset () |
Clear the Selection (may not release memory) |