Module |
|
Header |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/ToolSceneQueriesUtil.h |
Include |
#include "ToolSceneQueriesUtil.h" |
Source |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/ToolSceneQueriesUtil.cpp |
namespace ToolSceneQueriesUtil
{
bool ToolSceneQueriesUtil::FindSceneSnapPoint
(
const UInteractiveTool * Tool,
const FVector3d & Point,
FVector3d & SnapPointOut,
bool bVertices,
bool bEdges,
double VisualAngleThreshold,
FSnapGeometry * SnapGeometry,
FVector * DebugTriangleOut
)
}
Run a query against the scene to find the best SnapPointOut for the given Point
true if a valid snap point was found
Parameter |
Description |
---|---|
bVertices |
if true, try snapping to mesh vertices in the scene |
bEdges |
if true, try snapping to mesh triangle edges in the scene |
VisualAngleThreshold |
visual angle threshold to use. If 0, GetDefaultVisualAngleSnapThresh() is used |
SnapGeometry |
world-space position of the snap geometry (point/line/polygon) |
DebugTriangleOut |
if non-null, triangle containing snap is returned if a snap is found |