Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Sampling > API/Plugins/DynamicMesh/Sampling/IMeshBakerDetailSampler
- IMeshBakerDetailSampler::FindNearestTriangle()
- FMeshBakerDynamicMeshSampler::FindNearestTriangle()
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Sampling/MeshBakerCommon.h |
| Include | #include "Sampling/MeshBakerCommon.h" |
virtual const void &42; FindNearestTriangle
&40;
const FVector3d & Point,
double & NearestDistSqrOut,
int & TriId,
FVector3d & TriBaryCoords,
const IMeshSpatial::FQueryOptions & Options
&41; const
a pointer to the mesh that holds the nearest triangle
Parameters
| Name | Description |
|---|---|
| Point | query point |
| NearestDistSqrOut | [Out] returned nearest squared distance, if triangle is found |
| TriId | [Out] ID of triangle nearest to Point within MaxDistance, or InvalidID if not found |
| TriBaryCoords | [Out] barycentric coordinates of the nearest point on the nearest tri. |
| Options | query options |