Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Selection
Warnings * this class is likely to change in the future
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Selection/PersistentMeshSelection.h |
| Include | #include "Selection/PersistentMeshSelection.h" |
Syntax
struct FGenericMeshSelection
Remarks
FGenericMeshSelection represents various types of selection on a Mesh. This includes various types of indices that could be interpreted in different ways.
In addition, "Render" geometry is stored, which can be used by higher-level code to draw the selection in some way (eg a selection highlight)
this class is likely to change in the future
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< UE::Geometry::FIndex2i > | EdgeIDs | Selected edges, represented as index pairs because for many selections, using a pair of vertices defining/on the edge is more reliable (due to unstable edge IDs) | |
| TArray< int32 > | FaceIDs | Selected triangles/faces/regions | |
| TArray< UE::Geometry::FSegment3d > | RenderEdges | Set of 3D lines representing selection (in world space) | |
| TArray< FVector3d > | RenderVertices | Set of 3D points representing selection (in world space) | |
| UPrimitiveComponent * | SourceComponent | Component this selection applies to (eg that owns mesh, etc) | |
| ETopologyType | TopologyType | Selection type | |
| TArray< int32 > | VertexIDs | Selected vertices or "corners" (eg of polygroup topology) |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const TArray< int32 > & | GetGroupIDs () |
||
| bool | |||
| bool | IsEmpty () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const FGenericMeshSelection& Other |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ETopologyType | Selection type |