Module |
|
Header |
/Engine/Plugins/Experimental/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 (optionally configurable via UpdateEnableFlags). Internally a FGeometrySet3 is constructed to support ray-hit testing against the edges and corners.
Note 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 | ||
---|---|---|---|
|
bEnableCornerHits |
||
|
bEnableEdgeHits |
||
|
bEnableFaceHits |
||
|
bGeometryInitialized |
||
|
bGeometryUpToDate |
||
|
GeometrySet |
||
|
GetSpatial |
||
|
const FDynamicM... |
Mesh |
|
|
PointsWithinToleranceTest |
Configuration variables 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 | ||
---|---|---|---|
|
DrawSelection ( |
Render the given selection with the default settings of the FToolDataVisualizer. |
|
|
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. |
|
|
UpdateEnableFlags |
Configure whether faces, edges, and corners will be returned by hit-tests |