Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Selection > API/Plugins/ModelingComponents/Selection/UMeshTopologySelectionMechanic > API/Plugins/ModelingComponents/Selection/UMeshTopologySelectionMechanic/TopologyHitTest
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Selection/MeshTopologySelectionMechanic.h |
| Include | #include "Selection/MeshTopologySelectionMechanic.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Selection/MeshTopologySelectionMechanic.cpp |
bool TopologyHitTest
(
const FRay & WorldRay,
FHitResult & OutHit,
FGroupTopologySelection & OutSelection,
bool bUseOrthoSettings
)
Remarks
Perform a hit test on the topology using the current selection settings. Note that to work properly, the mechanic requires that Render() be called on it, as it needs to cache camera state. In cases of hitting edges and corners, OutHit contains the following: OutHit.FaceIndex: edge or corner id in the topology OutHit.ImpactPoint: closest point on the ray to the hit element (Note: not a point on the element!) OutHit.Distance: distance along the ray to ImpactPoint OutHit.Item: if hit item was an edge, index of the segment within the edge polyline. Otherwise undefined.
Parameters
| Name | Description |
|---|---|
| bUseOrthoSettings | If true, the ortho-relevant settings for selection are used (selecting down the view ray, etc) |