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 double HausdorffDistance
(
const TriangleMeshType & MeshA,
const MeshSpatialType & SpatialB
)
Remarks
Compute all vertex-to-surface distances in parallel. Serial raw loop to find max element (using Algo::MaxElement was never faster in initial benchmarking.) The maximum distance to the surface contained in SpatialB over all vertices in MeshA.
Parameters
| Name | Description |
|---|---|
| MeshA | The mesh whose maximum vertex distance should be computed. |
| SpatialB | The target surface's acceleration structure. |