Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TMeshQueries
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/MeshQueries.h |
| Include | #include "MeshQueries.h" |
template<typename MeshSpatialType>
static void VertexToSurfaceDistances
(
const TriangleMeshType & MeshA,
const MeshSpatialType & SpatialB,
TArray < double > & Distances
)
Remarks
For each vertex on MeshA, compute the distance to the nearest point on the surface contained in SpatialB.
Parameters
| Name | Description |
|---|---|
| MeshA | The mesh whose vertex distances should be computed. |
| SpatialB | The target surface's acceleration structure. |
| Distances | For each vertex in MeshA, the distance to the closest point in SpatialB. |