MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / findMaxDistanceSq

Function findMaxDistanceSq

source/MRMesh/MRMeshMeshDistance.cpp:349–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349float findMaxDistanceSq( const MeshPart& a, const MeshPart& b, const AffineXf3f* rigidB2A, float maxDistanceSq )
350{
351 std::unique_ptr<AffineXf3f> rigidA2B = rigidB2A ? std::make_unique<AffineXf3f>( rigidB2A->inverse() ) : nullptr;
352 return std::max( findMaxDistanceSqOneWay( a, b, rigidB2A, maxDistanceSq ), findMaxDistanceSqOneWay( b, a, rigidA2B.get(), maxDistanceSq ) );
353}
354
355} //namespace MR

Callers

nothing calls this directly

Calls 4

maxFunction · 0.85
findMaxDistanceSqOneWayFunction · 0.70
inverseMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected