Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/UPreviewMesh
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/PreviewMesh.h |
| Include | #include "PreviewMesh.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/PreviewMesh.cpp |
FVector3d FindNearestPoint
(
const FVector3d & WorldPoint,
bool bLinearSearch
)
Remarks
Find nearest point on current mesh to given WorldPoint Requires that bBuildSpatialDataStructure = true unless bLinearSearch = true nearest point in world space
Parameters
| Name | Description |
|---|---|
| WorldPoint | point in world space |
| bLinearSearch | test every triangle. On a mesh where only a few queries will be run, this is faster than building the spatial data structure. |