MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshMeshDistance.h File Reference
#include <MRCMisc/exports.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_AffineXf3f MR_AffineXf3f
 
typedef struct MR_MeshPart MR_MeshPart
 
typedef struct MR_PointOnFace MR_PointOnFace
 
typedef struct MR_MeshMeshDistanceResult MR_MeshMeshDistanceResult
 Generated from class MR::MeshMeshDistanceResult.
 
typedef struct MR_MeshMeshSignedDistanceResult MR_MeshMeshSignedDistanceResult
 Generated from class MR::MeshMeshSignedDistanceResult.
 

Functions

MRC_API const MR_PointOnFaceMR_MeshMeshDistanceResult_Get_a (const MR_MeshMeshDistanceResult *_this)
 
MRC_API void MR_MeshMeshDistanceResult_Set_a (MR_MeshMeshDistanceResult *_this, const MR_PointOnFace *value)
 
MRC_API MR_PointOnFaceMR_MeshMeshDistanceResult_GetMutable_a (MR_MeshMeshDistanceResult *_this)
 
MRC_API const MR_PointOnFaceMR_MeshMeshDistanceResult_Get_b (const MR_MeshMeshDistanceResult *_this)
 
MRC_API void MR_MeshMeshDistanceResult_Set_b (MR_MeshMeshDistanceResult *_this, const MR_PointOnFace *value)
 
MRC_API MR_PointOnFaceMR_MeshMeshDistanceResult_GetMutable_b (MR_MeshMeshDistanceResult *_this)
 
MRC_API const float * MR_MeshMeshDistanceResult_Get_distSq (const MR_MeshMeshDistanceResult *_this)
 
MRC_API void MR_MeshMeshDistanceResult_Set_distSq (MR_MeshMeshDistanceResult *_this, float value)
 
MRC_API float * MR_MeshMeshDistanceResult_GetMutable_distSq (MR_MeshMeshDistanceResult *_this)
 
MRC_API MR_MeshMeshDistanceResultMR_MeshMeshDistanceResult_DefaultConstruct (void)
 
MRC_API MR_MeshMeshDistanceResultMR_MeshMeshDistanceResult_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_MeshMeshDistanceResultMR_MeshMeshDistanceResult_ConstructFrom (const MR_PointOnFace *a, const MR_PointOnFace *b, float distSq)
 
MRC_API const MR_MeshMeshDistanceResultMR_MeshMeshDistanceResult_OffsetPtr (const MR_MeshMeshDistanceResult *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_MeshMeshDistanceResultMR_MeshMeshDistanceResult_OffsetMutablePtr (MR_MeshMeshDistanceResult *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_MeshMeshDistanceResultMR_MeshMeshDistanceResult_ConstructFromAnother (const MR_MeshMeshDistanceResult *_other)
 
MRC_API void MR_MeshMeshDistanceResult_Destroy (const MR_MeshMeshDistanceResult *_this)
 Destroys a heap-allocated instance of MR_MeshMeshDistanceResult. Does nothing if the pointer is null.
 
MRC_API void MR_MeshMeshDistanceResult_DestroyArray (const MR_MeshMeshDistanceResult *_this)
 Destroys a heap-allocated array of MR_MeshMeshDistanceResult. Does nothing if the pointer is null.
 
MRC_API MR_MeshMeshDistanceResultMR_MeshMeshDistanceResult_AssignFromAnother (MR_MeshMeshDistanceResult *_this, const MR_MeshMeshDistanceResult *_other)
 
MRC_API const MR_PointOnFaceMR_MeshMeshSignedDistanceResult_Get_a (const MR_MeshMeshSignedDistanceResult *_this)
 
MRC_API void MR_MeshMeshSignedDistanceResult_Set_a (MR_MeshMeshSignedDistanceResult *_this, const MR_PointOnFace *value)
 
MRC_API MR_PointOnFaceMR_MeshMeshSignedDistanceResult_GetMutable_a (MR_MeshMeshSignedDistanceResult *_this)
 
MRC_API const MR_PointOnFaceMR_MeshMeshSignedDistanceResult_Get_b (const MR_MeshMeshSignedDistanceResult *_this)
 
MRC_API void MR_MeshMeshSignedDistanceResult_Set_b (MR_MeshMeshSignedDistanceResult *_this, const MR_PointOnFace *value)
 
MRC_API MR_PointOnFaceMR_MeshMeshSignedDistanceResult_GetMutable_b (MR_MeshMeshSignedDistanceResult *_this)
 
MRC_API const float * MR_MeshMeshSignedDistanceResult_Get_signedDist (const MR_MeshMeshSignedDistanceResult *_this)
 
MRC_API void MR_MeshMeshSignedDistanceResult_Set_signedDist (MR_MeshMeshSignedDistanceResult *_this, float value)
 
MRC_API float * MR_MeshMeshSignedDistanceResult_GetMutable_signedDist (MR_MeshMeshSignedDistanceResult *_this)
 
MRC_API MR_MeshMeshSignedDistanceResultMR_MeshMeshSignedDistanceResult_DefaultConstruct (void)
 
MRC_API MR_MeshMeshSignedDistanceResultMR_MeshMeshSignedDistanceResult_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_MeshMeshSignedDistanceResultMR_MeshMeshSignedDistanceResult_ConstructFrom (const MR_PointOnFace *a, const MR_PointOnFace *b, float signedDist)
 
MRC_API const MR_MeshMeshSignedDistanceResultMR_MeshMeshSignedDistanceResult_OffsetPtr (const MR_MeshMeshSignedDistanceResult *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_MeshMeshSignedDistanceResultMR_MeshMeshSignedDistanceResult_OffsetMutablePtr (MR_MeshMeshSignedDistanceResult *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_MeshMeshSignedDistanceResultMR_MeshMeshSignedDistanceResult_ConstructFromAnother (const MR_MeshMeshSignedDistanceResult *_other)
 
MRC_API void MR_MeshMeshSignedDistanceResult_Destroy (const MR_MeshMeshSignedDistanceResult *_this)
 Destroys a heap-allocated instance of MR_MeshMeshSignedDistanceResult. Does nothing if the pointer is null.
 
MRC_API void MR_MeshMeshSignedDistanceResult_DestroyArray (const MR_MeshMeshSignedDistanceResult *_this)
 Destroys a heap-allocated array of MR_MeshMeshSignedDistanceResult. Does nothing if the pointer is null.
 
MRC_API MR_MeshMeshSignedDistanceResultMR_MeshMeshSignedDistanceResult_AssignFromAnother (MR_MeshMeshSignedDistanceResult *_this, const MR_MeshMeshSignedDistanceResult *_other)
 
MRC_API MR_MeshMeshDistanceResultMR_findDistance (const MR_MeshPart *a, const MR_MeshPart *b, const MR_AffineXf3f *rigidB2A, const float *upDistLimitSq)
 computes minimal distance between two meshes or two mesh regions
 
MRC_API MR_MeshMeshSignedDistanceResultMR_findSignedDistance_MR_MeshPart (const MR_MeshPart *a, const MR_MeshPart *b, const MR_AffineXf3f *rigidB2A, const float *upDistLimitSq)
 computes minimal distance between two meshes
 
MRC_API float MR_findMaxDistanceSqOneWay_MR_MeshPart (const MR_MeshPart *a, const MR_MeshPart *b, const MR_AffineXf3f *rigidB2A, const float *maxDistanceSq)
 returns the maximum of the squared distances from each B-mesh vertex to A-mesh
 
MRC_API float MR_findMaxDistanceSq_MR_MeshPart (const MR_MeshPart *a, const MR_MeshPart *b, const MR_AffineXf3f *rigidB2A, const float *maxDistanceSq)
 returns the squared Hausdorff distance between two meshes, that is the maximum of squared distances from each mesh vertex to the other mesh (in both directions)
 

Typedef Documentation

◆ MR_AffineXf3f

typedef struct MR_AffineXf3f MR_AffineXf3f

◆ MR_MeshMeshDistanceResult

◆ MR_MeshMeshSignedDistanceResult

◆ MR_MeshPart

typedef struct MR_MeshPart MR_MeshPart

◆ MR_PointOnFace

Function Documentation

◆ MR_findDistance()

MRC_API MR_MeshMeshDistanceResult * MR_findDistance ( const MR_MeshPart * a,
const MR_MeshPart * b,
const MR_AffineXf3f * rigidB2A,
const 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 Generated from function MR::findDistance. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object. Parameter rigidB2A defaults to a null pointer in C++. Parameter upDistLimitSq has a default argument: 3.40282347E+38F, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshMeshDistanceResult_Destroy() to free it when you're done using it.

◆ MR_findMaxDistanceSq_MR_MeshPart()

MRC_API float MR_findMaxDistanceSq_MR_MeshPart ( const MR_MeshPart * a,
const MR_MeshPart * b,
const MR_AffineXf3f * rigidB2A,
const float * maxDistanceSq )

returns the squared Hausdorff distance between two meshes, that is the maximum of squared distances from each mesh vertex to the other mesh (in both directions)

Parameters
rigidB2Arigid transformation from B-mesh space to A mesh space, nullptr considered as identity transformation
maxDistanceSqupper limit on the positive distance in question, if the real distance is larger than the function exists returning maxDistanceSq Generated from function MR::findMaxDistanceSq. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object. Parameter rigidB2A defaults to a null pointer in C++. Parameter maxDistanceSq has a default argument: 3.40282347E+38F, pass a null pointer to use it.

◆ MR_findMaxDistanceSqOneWay_MR_MeshPart()

MRC_API float MR_findMaxDistanceSqOneWay_MR_MeshPart ( const MR_MeshPart * a,
const MR_MeshPart * b,
const MR_AffineXf3f * rigidB2A,
const float * maxDistanceSq )

returns the maximum of the squared distances from each B-mesh vertex to A-mesh

Parameters
rigidB2Arigid transformation from B-mesh space to A mesh space, nullptr considered as identity transformation
maxDistanceSqupper limit on the positive distance in question, if the real distance is larger than the function exists returning maxDistanceSq Generated from function MR::findMaxDistanceSqOneWay. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object. Parameter rigidB2A defaults to a null pointer in C++. Parameter maxDistanceSq has a default argument: 3.40282347E+38F, pass a null pointer to use it.

◆ MR_findSignedDistance_MR_MeshPart()

MRC_API MR_MeshMeshSignedDistanceResult * MR_findSignedDistance_MR_MeshPart ( const MR_MeshPart * a,
const MR_MeshPart * b,
const MR_AffineXf3f * rigidB2A,
const float * upDistLimitSq )

computes minimal distance between two meshes

Parameters
rigidB2Arigid transformation from B-mesh space to A mesh space, nullptr considered as identity transformation
upDistLimitSqupper limit on the positive distance in question, if the real distance is larger than the function exists returning upDistLimitSq and no valid points Generated from function MR::findSignedDistance. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object. Parameter rigidB2A defaults to a null pointer in C++. Parameter upDistLimitSq has a default argument: 3.40282347E+38F, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshMeshSignedDistanceResult_Destroy() to free it when you're done using it.

◆ MR_MeshMeshDistanceResult_AssignFromAnother()

MRC_API MR_MeshMeshDistanceResult * MR_MeshMeshDistanceResult_AssignFromAnother ( MR_MeshMeshDistanceResult * _this,
const MR_MeshMeshDistanceResult * _other )

Generated from a method of class MR::MeshMeshDistanceResult named operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshDistanceResult_ConstructFrom()

MRC_API MR_MeshMeshDistanceResult * MR_MeshMeshDistanceResult_ConstructFrom ( const MR_PointOnFace * a,
const MR_PointOnFace * b,
float distSq )

Constructs MR::MeshMeshDistanceResult elementwise. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshMeshDistanceResult_Destroy() to free it when you're done using it.

◆ MR_MeshMeshDistanceResult_ConstructFromAnother()

MRC_API MR_MeshMeshDistanceResult * MR_MeshMeshDistanceResult_ConstructFromAnother ( const MR_MeshMeshDistanceResult * _other)

Generated from a constructor of class MR::MeshMeshDistanceResult. Parameter _other can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshMeshDistanceResult_Destroy() to free it when you're done using it.

◆ MR_MeshMeshDistanceResult_DefaultConstruct()

MRC_API MR_MeshMeshDistanceResult * MR_MeshMeshDistanceResult_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshMeshDistanceResult_Destroy() to free it when you're done using it.

◆ MR_MeshMeshDistanceResult_DefaultConstructArray()

MRC_API MR_MeshMeshDistanceResult * MR_MeshMeshDistanceResult_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_MeshMeshDistanceResult_DestroyArray(). Use MR_MeshMeshDistanceResult_OffsetMutablePtr() and MR_MeshMeshDistanceResult_OffsetPtr() to access the array elements.

◆ MR_MeshMeshDistanceResult_Destroy()

MRC_API void MR_MeshMeshDistanceResult_Destroy ( const MR_MeshMeshDistanceResult * _this)

Destroys a heap-allocated instance of MR_MeshMeshDistanceResult. Does nothing if the pointer is null.

◆ MR_MeshMeshDistanceResult_DestroyArray()

MRC_API void MR_MeshMeshDistanceResult_DestroyArray ( const MR_MeshMeshDistanceResult * _this)

Destroys a heap-allocated array of MR_MeshMeshDistanceResult. Does nothing if the pointer is null.

◆ MR_MeshMeshDistanceResult_Get_a()

MRC_API const MR_PointOnFace * MR_MeshMeshDistanceResult_Get_a ( const MR_MeshMeshDistanceResult * _this)

two closest points: from meshes A and B respectively Returns a pointer to a member variable of class MR::MeshMeshDistanceResult named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshDistanceResult_Get_b()

MRC_API const MR_PointOnFace * MR_MeshMeshDistanceResult_Get_b ( const MR_MeshMeshDistanceResult * _this)

two closest points: from meshes A and B respectively Returns a pointer to a member variable of class MR::MeshMeshDistanceResult named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshDistanceResult_Get_distSq()

MRC_API const float * MR_MeshMeshDistanceResult_Get_distSq ( const MR_MeshMeshDistanceResult * _this)

squared distance between a and b Returns a pointer to a member variable of class MR::MeshMeshDistanceResult named distSq. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshDistanceResult_GetMutable_a()

MRC_API MR_PointOnFace * MR_MeshMeshDistanceResult_GetMutable_a ( MR_MeshMeshDistanceResult * _this)

two closest points: from meshes A and B respectively Returns a mutable pointer to a member variable of class MR::MeshMeshDistanceResult named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshDistanceResult_GetMutable_b()

MRC_API MR_PointOnFace * MR_MeshMeshDistanceResult_GetMutable_b ( MR_MeshMeshDistanceResult * _this)

two closest points: from meshes A and B respectively Returns a mutable pointer to a member variable of class MR::MeshMeshDistanceResult named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshDistanceResult_GetMutable_distSq()

MRC_API float * MR_MeshMeshDistanceResult_GetMutable_distSq ( MR_MeshMeshDistanceResult * _this)

squared distance between a and b Returns a mutable pointer to a member variable of class MR::MeshMeshDistanceResult named distSq. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshDistanceResult_OffsetMutablePtr()

MRC_API MR_MeshMeshDistanceResult * MR_MeshMeshDistanceResult_OffsetMutablePtr ( MR_MeshMeshDistanceResult * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_MeshMeshDistanceResult_OffsetPtr()

MRC_API const MR_MeshMeshDistanceResult * MR_MeshMeshDistanceResult_OffsetPtr ( const MR_MeshMeshDistanceResult * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_MeshMeshDistanceResult_Set_a()

MRC_API void MR_MeshMeshDistanceResult_Set_a ( MR_MeshMeshDistanceResult * _this,
const MR_PointOnFace * value )

two closest points: from meshes A and B respectively Modifies a member variable of class MR::MeshMeshDistanceResult named a. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object.

◆ MR_MeshMeshDistanceResult_Set_b()

MRC_API void MR_MeshMeshDistanceResult_Set_b ( MR_MeshMeshDistanceResult * _this,
const MR_PointOnFace * value )

two closest points: from meshes A and B respectively Modifies a member variable of class MR::MeshMeshDistanceResult named b. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object.

◆ MR_MeshMeshDistanceResult_Set_distSq()

MRC_API void MR_MeshMeshDistanceResult_Set_distSq ( MR_MeshMeshDistanceResult * _this,
float value )

squared distance between a and b Modifies a member variable of class MR::MeshMeshDistanceResult named distSq. Parameter _this can not be null. It is a single object.

◆ MR_MeshMeshSignedDistanceResult_AssignFromAnother()

MRC_API MR_MeshMeshSignedDistanceResult * MR_MeshMeshSignedDistanceResult_AssignFromAnother ( MR_MeshMeshSignedDistanceResult * _this,
const MR_MeshMeshSignedDistanceResult * _other )

Generated from a method of class MR::MeshMeshSignedDistanceResult named operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshSignedDistanceResult_ConstructFrom()

MRC_API MR_MeshMeshSignedDistanceResult * MR_MeshMeshSignedDistanceResult_ConstructFrom ( const MR_PointOnFace * a,
const MR_PointOnFace * b,
float signedDist )

Constructs MR::MeshMeshSignedDistanceResult elementwise. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshMeshSignedDistanceResult_Destroy() to free it when you're done using it.

◆ MR_MeshMeshSignedDistanceResult_ConstructFromAnother()

MRC_API MR_MeshMeshSignedDistanceResult * MR_MeshMeshSignedDistanceResult_ConstructFromAnother ( const MR_MeshMeshSignedDistanceResult * _other)

Generated from a constructor of class MR::MeshMeshSignedDistanceResult. Parameter _other can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshMeshSignedDistanceResult_Destroy() to free it when you're done using it.

◆ MR_MeshMeshSignedDistanceResult_DefaultConstruct()

MRC_API MR_MeshMeshSignedDistanceResult * MR_MeshMeshSignedDistanceResult_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshMeshSignedDistanceResult_Destroy() to free it when you're done using it.

◆ MR_MeshMeshSignedDistanceResult_DefaultConstructArray()

MRC_API MR_MeshMeshSignedDistanceResult * MR_MeshMeshSignedDistanceResult_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_MeshMeshSignedDistanceResult_DestroyArray(). Use MR_MeshMeshSignedDistanceResult_OffsetMutablePtr() and MR_MeshMeshSignedDistanceResult_OffsetPtr() to access the array elements.

◆ MR_MeshMeshSignedDistanceResult_Destroy()

MRC_API void MR_MeshMeshSignedDistanceResult_Destroy ( const MR_MeshMeshSignedDistanceResult * _this)

Destroys a heap-allocated instance of MR_MeshMeshSignedDistanceResult. Does nothing if the pointer is null.

◆ MR_MeshMeshSignedDistanceResult_DestroyArray()

MRC_API void MR_MeshMeshSignedDistanceResult_DestroyArray ( const MR_MeshMeshSignedDistanceResult * _this)

Destroys a heap-allocated array of MR_MeshMeshSignedDistanceResult. Does nothing if the pointer is null.

◆ MR_MeshMeshSignedDistanceResult_Get_a()

MRC_API const MR_PointOnFace * MR_MeshMeshSignedDistanceResult_Get_a ( const MR_MeshMeshSignedDistanceResult * _this)

two closest points: from meshes A and B respectively Returns a pointer to a member variable of class MR::MeshMeshSignedDistanceResult named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshSignedDistanceResult_Get_b()

MRC_API const MR_PointOnFace * MR_MeshMeshSignedDistanceResult_Get_b ( const MR_MeshMeshSignedDistanceResult * _this)

two closest points: from meshes A and B respectively Returns a pointer to a member variable of class MR::MeshMeshSignedDistanceResult named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshSignedDistanceResult_Get_signedDist()

MRC_API const float * MR_MeshMeshSignedDistanceResult_Get_signedDist ( const MR_MeshMeshSignedDistanceResult * _this)

signed distance between a and b, positive if meshes do not collide Returns a pointer to a member variable of class MR::MeshMeshSignedDistanceResult named signedDist. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshSignedDistanceResult_GetMutable_a()

MRC_API MR_PointOnFace * MR_MeshMeshSignedDistanceResult_GetMutable_a ( MR_MeshMeshSignedDistanceResult * _this)

two closest points: from meshes A and B respectively Returns a mutable pointer to a member variable of class MR::MeshMeshSignedDistanceResult named a. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshSignedDistanceResult_GetMutable_b()

MRC_API MR_PointOnFace * MR_MeshMeshSignedDistanceResult_GetMutable_b ( MR_MeshMeshSignedDistanceResult * _this)

two closest points: from meshes A and B respectively Returns a mutable pointer to a member variable of class MR::MeshMeshSignedDistanceResult named b. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshSignedDistanceResult_GetMutable_signedDist()

MRC_API float * MR_MeshMeshSignedDistanceResult_GetMutable_signedDist ( MR_MeshMeshSignedDistanceResult * _this)

signed distance between a and b, positive if meshes do not collide Returns a mutable pointer to a member variable of class MR::MeshMeshSignedDistanceResult named signedDist. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshMeshSignedDistanceResult_OffsetMutablePtr()

MRC_API MR_MeshMeshSignedDistanceResult * MR_MeshMeshSignedDistanceResult_OffsetMutablePtr ( MR_MeshMeshSignedDistanceResult * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_MeshMeshSignedDistanceResult_OffsetPtr()

MRC_API const MR_MeshMeshSignedDistanceResult * MR_MeshMeshSignedDistanceResult_OffsetPtr ( const MR_MeshMeshSignedDistanceResult * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_MeshMeshSignedDistanceResult_Set_a()

MRC_API void MR_MeshMeshSignedDistanceResult_Set_a ( MR_MeshMeshSignedDistanceResult * _this,
const MR_PointOnFace * value )

two closest points: from meshes A and B respectively Modifies a member variable of class MR::MeshMeshSignedDistanceResult named a. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object.

◆ MR_MeshMeshSignedDistanceResult_Set_b()

MRC_API void MR_MeshMeshSignedDistanceResult_Set_b ( MR_MeshMeshSignedDistanceResult * _this,
const MR_PointOnFace * value )

two closest points: from meshes A and B respectively Modifies a member variable of class MR::MeshMeshSignedDistanceResult named b. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object.

◆ MR_MeshMeshSignedDistanceResult_Set_signedDist()

MRC_API void MR_MeshMeshSignedDistanceResult_Set_signedDist ( MR_MeshMeshSignedDistanceResult * _this,
float value )

signed distance between a and b, positive if meshes do not collide Modifies a member variable of class MR::MeshMeshSignedDistanceResult named signedDist. Parameter _this can not be null. It is a single object.