Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Selection
Inheritance Hierarchy
- UObject
- UInteractionMechanic
- UMeshTopologySelectionMechanic
- UPolygonSelectionMechanic
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Selection/PolygonSelectionMechanic.h |
| Include | #include "Selection/PolygonSelectionMechanic.h" |
Syntax
UCLASS ()
class UPolygonSelectionMechanic : public UMeshTopologySelectionMechanic
Remarks
UPolygonSelectionMechanic implements the interaction for selecting a set of faces/vertices/edges from a FGroupTopology.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ConvertSelectionToBorderVertices
(
bool bAsTriangleTopology |
Converts selection to a vertex/corner selection of just the boundary vertices/corners | |
| void | Expands selection to encompass connected components. | ||
| void | GetSelection_AsGroupTopology
(
UE::Geometry::FGeometrySelection& SelectionOut, |
Convert the Active Selection to a PolyGroup-topology FGeometrySelection, with optional CompactMaps | |
| void | GetSelection_AsTriangleTopology
(
UE::Geometry::FGeometrySelection& SelectionOut, |
Convert the Active Selection to a Triangle-topology FGeometrySelection, with optional CompactMaps | |
| void | GrowSelection
(
bool bAsTriangleTopology |
Expands selection at the borders. | |
| void | Initialize
(
UDynamicMeshComponent* MeshComponent, |
||
| void | Initialize
(
const FDynamicMesh3* Mesh, |
||
| void | SetSelection_AsGroupTopology
(
const UE::Geometry::FGeometrySelection& Selection |
Initialize the Active Selection based on the provided PolyGroup-topology FGeometrySelection | |
| void | SetSelection_AsTriangleTopology
(
const UE::Geometry::FGeometrySelection& Selection |
Initialize the Active Selection based on the provided Triangle-topology FGeometrySelection | |
| void | ShrinkSelection
(
bool bAsTriangleTopology |
Shrinks selection at the borders. |
Overridden from UMeshTopologySelectionMechanic
| Type | Name | Description | |
|---|---|---|---|
| bool | UpdateHighlight
(
const FRay& WorldRay |
UMeshTopologySelectionMechanic. | |
| bool | UpdateSelection
(
const FRay& WorldRay, |
Selection API Intersect the ray with the mesh and update the selection based on the hit element, modifier states, etc |