MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshMeshDistance.h File Reference
#include "MRMeshFwd.h"
#include "MRMeshPart.h"
#include "MRPointOnFace.h"

Go to the source code of this file.

Classes

struct  MRMeshMeshDistanceResult
 

Typedefs

typedef MR_EXTERN_C_BEGIN struct MRMeshMeshDistanceResult MRMeshMeshDistanceResult
 

Functions

MRMESHC_API MRMeshMeshDistanceResult mrFindDistance (const MRMeshPart *a, const MRMeshPart *b, const MRAffineXf3f *rigidB2A, float upDistLimitSq)
 computes minimal distance between two meshes or two mesh regions
 

Typedef Documentation

◆ MRMeshMeshDistanceResult

typedef MR_EXTERN_C_BEGIN struct MRMeshMeshDistanceResult MRMeshMeshDistanceResult

Function Documentation

◆ mrFindDistance()

MRMESHC_API MRMeshMeshDistanceResult mrFindDistance ( const MRMeshPart * a,
const MRMeshPart * b,
const MRAffineXf3f * rigidB2A,
float upDistLimitSq )

computes minimal distance between two meshes or two mesh regions

Parameters
rigidB2Arigid transformation from B-mesh space to A mesh space, nullptr considered as identity transformation
upDistLimitSqupper limit on the distance in question, if the real distance is larger than the function exists returning upDistLimitSq and no valid points