TMeshQueries::HausdorffDistance

Compute all vertex-to-surface distances in parallel.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/MeshQueries.h

Include

#include "MeshQueries.h"

Syntax

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.)

Returns

The maximum distance to the surface contained in SpatialB over all vertices in MeshA.

Parameters

Parameter

Description

MeshA

The mesh whose maximum vertex distance should be computed.

SpatialB

The target surface's acceleration structure.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss