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 | 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 | 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 |
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 |