Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Selection/GroupTopologySelector.h |
Include |
#include "Selection/GroupTopologySelector.h" |
class FGroupTopologySelector
FGroupTopologySelector implements selection behavior for a FGroupTopology mesh. Groups, Group Edges, and Corners can be selected dependings on the settings passed in.
Internally a FGeometrySet3 is constructed to support ray-hit testing against the edges and corners.
that to hit-test against the mesh you have to provide a your own FDynamicMeshAABBTree3. You do this by providing a callback via SetSpatialSource(). The reason for this is that (1) owners of FGroupTopologySelector likely already have a BVTree and (2) if the use case is deformation, we need to make sure the owner has recomputed the BVTree before we call functions on it. The callback you provide should do that!DrawSelection() can be used to visualize a selection via line/circle drawing.
Name | Description | ||
---|---|---|---|
|
bGeometryInitialized |
||
|
bGeometryUpToDate |
||
|
GeometrySet |
||
|
TFunction< FDyn... |
GetSpatial |
|
|
const FDynamicM... |
Mesh |
|
|
PointsWithinToleranceTest |
This is the function we use to determine if a point on a corner/edge is close enough to the hit-test ray to treat as a "hit". |
|
|
const FGroupTop... |
Topology |
|
|
float |
VisualAngleSnapThreshold |
Internal rendering parameters |
Name | Description | |
---|---|---|
|
FGroupTopologySelector() |
Name | Description | ||
---|---|---|---|
|
DoCornerBasedSelection ( |
||
|
DoEdgeBasedSelection ( |
||
|
DrawSelection ( |
Render the given selection with the default settings of the FToolDataVisualizer. |
|
|
ExpandSelectionByEdgeLoops ( |
Using the edges in the given selection as starting points, add any "edge loops" containing the edges. |
|
|
ExpandSelectionByEdgeRings ( |
Using the edges in the given selection as starting points, add any "edge rings" containing the edges. |
|
|
FindSelectedElement ( |
Given a camera rectangle (from a marquee selection) gives the group corners or edges that are contained in the rectangle. |
|
|
FindSelectedElement ( |
Find which element was selected for a given ray. |
|
|
const FGeome... |
GetGeometrySet() |
|
|
Initialize ( |
Initialize the selector with the given Mesh and Topology. |
|
|
Invalidate |
Notify the Selector that the mesh has changed. |
|
|
SetSpatialSource ( |
Provide a function that will return an AABBTree for the Mesh. |
Name |
Description |
|
---|---|---|
|
FSelectionSettings |
Configuration variables Determines the behavior of a FindSelectedElement() call. |
Name |
Description |
|
---|---|---|
|
ECornerDrawStyle |
Name |
Description |
---|---|
FTransform3d |