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 FGeoSelectionID
Remarks
FGeoSelectionID provides a pair of 32-bit unsigned integers that can be packed into a 64-bit unsigned integer for use with FGeometrySelection. This is generally intended to be used to encode a mesh geometry ID (eg TriangleID, EdgeID, VertexID) combined with a "Topology ID", eg something like a Face Group ID. However none of this is enforced and so a caller can use these two integers for any purpose.
Note that since the ints are unsigned, IndexConstants::InvalidID is not directly representable (-1 will become positive 0xFFFFFFFF).
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32 | GeometryID | Geometry ID, stored in lower 32 bits when packed into 64-bits | |
| uint32 | TopologyID | Topology ID, stored in upper 32 bits when packed into 64-bits |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FGeoSelectionID
(
uint64 EncodedID |
Initialize the TopologyID and GeometryID by unpacking the 64-bit packed EncodedID | ||
FGeoSelectionID
(
uint32 GeometryIDIn, |
Initialize the TopologyID and GeometryID with the given values |
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint64 | Encoded () |
||
| FGeoSelectionID | |||
| FGeoSelectionID | MeshEdge
(
UE::Geometry::FMeshTriEdgeID EdgeKey |
||
| FGeoSelectionID | MeshTriangle
(
int32 TriangleID |
||
| FGeoSelectionID | MeshVertex
(
int32 VertexID |