Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TMeshQueries
Description
Compute all vertex-to-surface distances in parallel. Serial raw loop to find max element (using Algo::MaxElement was never faster in initial benchmarking.)
| Name | HausdorffDistance |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/MeshQueries.h |
| Include Path | #include "MeshQueries.h" |
template<typename MeshSpatialType>
static double HausdorffDistance
(
const TriangleMeshType & MeshA,
const MeshSpatialType & SpatialB
)
The maximum distance to the surface contained in SpatialB over all vertices in MeshA.
Parameters
| Name | Remarks |
|---|---|
| MeshA | The mesh whose maximum vertex distance should be computed. |
| SpatialB | The target surface's acceleration structure. |