Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/ToolSceneQueriesUtil__FindSceneS-
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/ToolSceneQueriesUtil.h |
| Include | #include "ToolSceneQueriesUtil.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/ToolSceneQueriesUtil.cpp |
namespace ToolSceneQueriesUtil
{
bool ToolSceneQueriesUtil&58;&58;FindSceneSnapPoint
&40;
const UInteractiveTool &42; Tool,
const FVector3d & Point,
FVector3d & SnapPointOut,
bool bVertices,
bool bEdges,
double VisualAngleThreshold,
FSnapGeometry &42; SnapGeometry,
FVector &42; DebugTriangleOut
&41;
}
Remarks
Run a query against the scene to find the best SnapPointOut for the given Point true if a valid snap point was found
Parameters
| Name | 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 |