Navigation
API > API/Plugins > API/Plugins/DynamicMesh
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).
| Name | FGeoSelectionID |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Selections/GeometrySelection.h |
| Include Path | #include "Selections/GeometrySelection.h" |
Syntax
struct FGeoSelectionID
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Selections/GeometrySelection.h | |||
FGeoSelectionID
(
uint64 EncodedID |
Initialize the TopologyID and GeometryID by unpacking the 64-bit packed EncodedID | Selections/GeometrySelection.h | |
FGeoSelectionID
(
uint32 GeometryIDIn, |
Initialize the TopologyID and GeometryID with the given values | Selections/GeometrySelection.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GeometryID | uint32 | Geometry ID, stored in lower 32 bits when packed into 64-bits | Selections/GeometrySelection.h | |
| TopologyID | uint32 | Topology ID, stored in upper 32 bits when packed into 64-bits | Selections/GeometrySelection.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint64 Encoded() |
Selections/GeometrySelection.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FGeoSelectionID GroupFace
(
int32 TriangleID, |
Selections/GeometrySelection.h | ||
static FGeoSelectionID MeshEdge
(
UE::Geometry::FMeshTriEdgeID EdgeKey |
Selections/GeometrySelection.h | ||
static FGeoSelectionID MeshTriangle
(
int32 TriangleID |
Selections/GeometrySelection.h | ||
static FGeoSelectionID MeshVertex
(
int32 VertexID |
Selections/GeometrySelection.h |