Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Selection > API/Plugins/ModelingComponents/Selection/FMeshTopologySelector > API/Plugins/ModelingComponents/Selection/FMeshTopologySelector/FindSelectedElem-
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Selection/MeshTopologySelector.h |
| Include | #include "Selection/MeshTopologySelector.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Selection/MeshTopologySelector.cpp |
bool FindSelectedElement
&40;
const FSelectionSettings & Settings,
const FRay3d & Ray,
FGroupTopologySelection & ResultOut,
FVector3d & SelectedPositionOut,
FVector3d & SelectedNormalOut,
int32 &42; EdgeSegmentIdOut
&41;
Remarks
Find which element was selected for a given ray. true if something was selected
Parameters
| Name | 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. |