Module |
|
Header |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Selection/GroupTopologySelector.h |
Include |
#include "Selection/GroupTopologySelector.h" |
Source |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/Selection/GroupTopologySelector.cpp |
bool FindSelectedElement
(
const FSelectionSettings & Settings,
const FRay3d & Ray,
FGroupTopologySelection & ResultOut,
FVector3d & SelectedPositionOut,
FVector3d & SelectedNormalOut,
int32 * EdgeSegmentIdOut
)
Find which element was selected for a given ray.
true if something was selected
Parameter |
Description |
---|---|
Settings |
settings that determine what can be selected. |
Ray |
hit-test ray |
ResultOut |
resulting selection. Will not be cleared before use. At most one of the Groups/Corners/Edges members will be added to. |
SelectedPositionOut |
The point on the ray nearest to the selected element |
SelectedNormalOut |
the normal at that point if ResultOut contains a selected face, otherwise uninitialized |
EdgeSegmentIdOut |
When not null, if the selected element is a group edge, the segment id of the segment that was actually clicked within the edge polyline will be stored here. |