UPolygonSelectionMechanic::TopologyHitTest

Perform a hit test on the topology using the current selection settings.

Windows
MacOS
Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Selection/PolygonSelectionMechanic.h

Include

#include "Selection/PolygonSelectionMechanic.h"

Source

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/Selection/PolygonSelectionMechanic.cpp

Syntax

bool TopologyHitTest
(
    const FRay & WorldRay,
    FHitResult & OutHit,
    FGroupTopologySelection & OutSelection,
    bool bUseOrthoSettings
)

Remarks

Perform a hit test on the topology using the current selection settings. 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 (

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

Parameter

Description

bUseOrthoSettings

If true, the ortho-relevant settings for selection are used (selecting down the view ray, etc)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss