ToolSceneQueriesUtil::FindSceneSnapPoint

Run a query against the scene to find the best SnapPointOut for the given Point

Windows
MacOS
Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/ToolSceneQueriesUtil.h

Include

#include "ToolSceneQueriesUtil.h"

Source

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/ToolSceneQueriesUtil.cpp

Syntax

namespace ToolSceneQueriesUtil
{
    bool ToolSceneQueriesUtil::FindSceneSnapPoint
    (
        const UInteractiveTool * Tool,
        const FVector3d & Point,
        FVector3d & SnapPointOut,
        bool bVertices,
        bool bEdges,
        double VisualAngleThreshold,
        FSnapGeometry * SnapGeometry,
        FVector * DebugTriangleOut
    )
}

Remarks

Run a query against the scene to find the best SnapPointOut for the given Point

Returns

true if a valid snap point was found

Parameters

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

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