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 FCameraRectangle & CameraRectangle,
FTransform3d TargetTransform,
FGroupTopologySelection & ResultOut,
TMap< int32, bool > &42; TriIsOccludedCache
&41;
Remarks
Given a camera rectangle (from a marquee selection) gives the corners/edges/groups that are contained in the rectangle. Only selects one of the types, and prefers corners to edges to groups.
For group edges, occlusion is checked at endpoints, and if either is occluded, the edge is considered occluded. For faces, occlusion is checked at triangle centroids. true if something was selected.
Parameters
| Name | Description |
|---|---|
| Settings | Settings that determine what is selected and whether occlusion is tested. |
| CameraRectangle | The camera rectangle. |
| TargetTransform | Transform from points to world space, since the rectangle is in world space. |
| ResultOut | Output selection (cleared before use). |
| TriIsOccludedCache | Cached values of whether a given Tid has an occluded centroid, since occlusion values will stay the same if the rectangle is resized as long as the camera is not moved. This should be used when doing occlusion-based marquee face selection on meshes with many triangles, because the occlusion checks are expensive. |