MeshLib C Docs
Loading...
Searching...
No Matches
MRClosestWeightedPoint.h File Reference
#include <MRCMesh/MRId.h>
#include <MRCMesh/MRVector3.h>
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_AABBTreePoints MR_AABBTreePoints
 
typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_MeshTriPoint MR_MeshTriPoint
 
typedef struct MR_std_function_float_from_MR_VertId MR_std_function_float_from_MR_VertId
 
typedef struct MR_PointAndDistance MR_PointAndDistance
 
typedef struct MR_MeshPointAndDistance MR_MeshPointAndDistance
 
typedef struct MR_DistanceFromWeightedPointsParams MR_DistanceFromWeightedPointsParams
 
typedef struct MR_DistanceFromWeightedPointsComputeParams MR_DistanceFromWeightedPointsComputeParams
 

Functions

MRC_API const MR_VertIdMR_PointAndDistance_Get_vId (const MR_PointAndDistance *_this)
 
MRC_API void MR_PointAndDistance_Set_vId (MR_PointAndDistance *_this, MR_VertId value)
 
MRC_API MR_VertIdMR_PointAndDistance_GetMutable_vId (MR_PointAndDistance *_this)
 
MRC_API const float * MR_PointAndDistance_Get_dist (const MR_PointAndDistance *_this)
 
MRC_API void MR_PointAndDistance_Set_dist (MR_PointAndDistance *_this, float value)
 
MRC_API float * MR_PointAndDistance_GetMutable_dist (MR_PointAndDistance *_this)
 
MRC_API MR_PointAndDistanceMR_PointAndDistance_DefaultConstruct (void)
 
MRC_API MR_PointAndDistanceMR_PointAndDistance_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_PointAndDistanceMR_PointAndDistance_ConstructFrom (MR_VertId vId, float dist)
 
MRC_API const MR_PointAndDistanceMR_PointAndDistance_OffsetPtr (const MR_PointAndDistance *ptr, ptrdiff_t i)
 
MRC_API MR_PointAndDistanceMR_PointAndDistance_OffsetMutablePtr (MR_PointAndDistance *ptr, ptrdiff_t i)
 
MRC_API MR_PointAndDistanceMR_PointAndDistance_ConstructFromAnother (const MR_PointAndDistance *_other)
 
MRC_API void MR_PointAndDistance_Destroy (const MR_PointAndDistance *_this)
 Destroys a heap-allocated instance of MR_PointAndDistance. Does nothing if the pointer is null.
 
MRC_API void MR_PointAndDistance_DestroyArray (const MR_PointAndDistance *_this)
 Destroys a heap-allocated array of MR_PointAndDistance. Does nothing if the pointer is null.
 
MRC_API bool MR_PointAndDistance_ConvertTo_bool (const MR_PointAndDistance *_this)
 
MRC_API MR_PointAndDistanceMR_PointAndDistance_AssignFromAnother (MR_PointAndDistance *_this, const MR_PointAndDistance *_other)
 
MRC_API bool MR_PointAndDistance_valid (const MR_PointAndDistance *_this)
 
MRC_API const MR_Vector3fMR_MeshPointAndDistance_Get_loc (const MR_MeshPointAndDistance *_this)
 
MRC_API void MR_MeshPointAndDistance_Set_loc (MR_MeshPointAndDistance *_this, MR_Vector3f value)
 
MRC_API MR_Vector3fMR_MeshPointAndDistance_GetMutable_loc (MR_MeshPointAndDistance *_this)
 
MRC_API const MR_MeshTriPointMR_MeshPointAndDistance_Get_mtp (const MR_MeshPointAndDistance *_this)
 
MRC_API void MR_MeshPointAndDistance_Set_mtp (MR_MeshPointAndDistance *_this, const MR_MeshTriPoint *value)
 
MRC_API MR_MeshTriPointMR_MeshPointAndDistance_GetMutable_mtp (MR_MeshPointAndDistance *_this)
 
MRC_API const float * MR_MeshPointAndDistance_Get_eucledeanDist (const MR_MeshPointAndDistance *_this)
 
MRC_API void MR_MeshPointAndDistance_Set_eucledeanDist (MR_MeshPointAndDistance *_this, float value)
 
MRC_API float * MR_MeshPointAndDistance_GetMutable_eucledeanDist (MR_MeshPointAndDistance *_this)
 
MRC_API const float * MR_MeshPointAndDistance_Get_w (const MR_MeshPointAndDistance *_this)
 
MRC_API void MR_MeshPointAndDistance_Set_w (MR_MeshPointAndDistance *_this, float value)
 
MRC_API float * MR_MeshPointAndDistance_GetMutable_w (MR_MeshPointAndDistance *_this)
 
MRC_API const bool * MR_MeshPointAndDistance_Get_bidirectionalOrOutside (const MR_MeshPointAndDistance *_this)
 
MRC_API void MR_MeshPointAndDistance_Set_bidirectionalOrOutside (MR_MeshPointAndDistance *_this, bool value)
 
MRC_API bool * MR_MeshPointAndDistance_GetMutable_bidirectionalOrOutside (MR_MeshPointAndDistance *_this)
 
MRC_API MR_MeshPointAndDistanceMR_MeshPointAndDistance_DefaultConstruct (void)
 
MRC_API MR_MeshPointAndDistanceMR_MeshPointAndDistance_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_MeshPointAndDistanceMR_MeshPointAndDistance_ConstructFrom (MR_Vector3f loc, const MR_MeshTriPoint *mtp, float eucledeanDist, float w, bool bidirectionalOrOutside)
 
MRC_API const MR_MeshPointAndDistanceMR_MeshPointAndDistance_OffsetPtr (const MR_MeshPointAndDistance *ptr, ptrdiff_t i)
 
MRC_API MR_MeshPointAndDistanceMR_MeshPointAndDistance_OffsetMutablePtr (MR_MeshPointAndDistance *ptr, ptrdiff_t i)
 
MRC_API MR_MeshPointAndDistanceMR_MeshPointAndDistance_ConstructFromAnother (const MR_MeshPointAndDistance *_other)
 
MRC_API void MR_MeshPointAndDistance_Destroy (const MR_MeshPointAndDistance *_this)
 Destroys a heap-allocated instance of MR_MeshPointAndDistance. Does nothing if the pointer is null.
 
MRC_API void MR_MeshPointAndDistance_DestroyArray (const MR_MeshPointAndDistance *_this)
 Destroys a heap-allocated array of MR_MeshPointAndDistance. Does nothing if the pointer is null.
 
MRC_API bool MR_MeshPointAndDistance_ConvertTo_bool (const MR_MeshPointAndDistance *_this)
 
MRC_API MR_MeshPointAndDistanceMR_MeshPointAndDistance_AssignFromAnother (MR_MeshPointAndDistance *_this, const MR_MeshPointAndDistance *_other)
 
MRC_API float MR_MeshPointAndDistance_bidirDist (const MR_MeshPointAndDistance *_this)
 
MRC_API float MR_MeshPointAndDistance_dist (const MR_MeshPointAndDistance *_this)
 
MRC_API bool MR_MeshPointAndDistance_valid (const MR_MeshPointAndDistance *_this)
 
MRC_API const MR_std_function_float_from_MR_VertIdMR_DistanceFromWeightedPointsParams_Get_pointWeight (const MR_DistanceFromWeightedPointsParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsParams_Set_pointWeight (MR_DistanceFromWeightedPointsParams *_this, MR_PassBy value_pass_by, MR_std_function_float_from_MR_VertId *value)
 
MRC_API MR_std_function_float_from_MR_VertIdMR_DistanceFromWeightedPointsParams_GetMutable_pointWeight (MR_DistanceFromWeightedPointsParams *_this)
 
MRC_API const float * MR_DistanceFromWeightedPointsParams_Get_minWeight (const MR_DistanceFromWeightedPointsParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsParams_Set_minWeight (MR_DistanceFromWeightedPointsParams *_this, float value)
 
MRC_API float * MR_DistanceFromWeightedPointsParams_GetMutable_minWeight (MR_DistanceFromWeightedPointsParams *_this)
 
MRC_API const float * MR_DistanceFromWeightedPointsParams_Get_maxWeight (const MR_DistanceFromWeightedPointsParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsParams_Set_maxWeight (MR_DistanceFromWeightedPointsParams *_this, float value)
 
MRC_API float * MR_DistanceFromWeightedPointsParams_GetMutable_maxWeight (MR_DistanceFromWeightedPointsParams *_this)
 
MRC_API const float * MR_DistanceFromWeightedPointsParams_Get_maxWeightGrad (const MR_DistanceFromWeightedPointsParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsParams_Set_maxWeightGrad (MR_DistanceFromWeightedPointsParams *_this, float value)
 
MRC_API float * MR_DistanceFromWeightedPointsParams_GetMutable_maxWeightGrad (MR_DistanceFromWeightedPointsParams *_this)
 
MRC_API const bool * MR_DistanceFromWeightedPointsParams_Get_bidirectionalMode (const MR_DistanceFromWeightedPointsParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsParams_Set_bidirectionalMode (MR_DistanceFromWeightedPointsParams *_this, bool value)
 
MRC_API bool * MR_DistanceFromWeightedPointsParams_GetMutable_bidirectionalMode (MR_DistanceFromWeightedPointsParams *_this)
 
MRC_API MR_DistanceFromWeightedPointsParamsMR_DistanceFromWeightedPointsParams_DefaultConstruct (void)
 
MRC_API MR_DistanceFromWeightedPointsParamsMR_DistanceFromWeightedPointsParams_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_DistanceFromWeightedPointsParamsMR_DistanceFromWeightedPointsParams_ConstructFrom (MR_PassBy pointWeight_pass_by, MR_std_function_float_from_MR_VertId *pointWeight, float minWeight, float maxWeight, float maxWeightGrad, bool bidirectionalMode)
 
MRC_API const MR_DistanceFromWeightedPointsParamsMR_DistanceFromWeightedPointsParams_OffsetPtr (const MR_DistanceFromWeightedPointsParams *ptr, ptrdiff_t i)
 
MRC_API MR_DistanceFromWeightedPointsParamsMR_DistanceFromWeightedPointsParams_OffsetMutablePtr (MR_DistanceFromWeightedPointsParams *ptr, ptrdiff_t i)
 
MRC_API const MR_DistanceFromWeightedPointsComputeParamsMR_DistanceFromWeightedPointsParams_StaticDowncastTo_MR_DistanceFromWeightedPointsComputeParams (const MR_DistanceFromWeightedPointsParams *object)
 
MRC_API MR_DistanceFromWeightedPointsComputeParamsMR_DistanceFromWeightedPointsParams_MutableStaticDowncastTo_MR_DistanceFromWeightedPointsComputeParams (MR_DistanceFromWeightedPointsParams *object)
 
MRC_API MR_DistanceFromWeightedPointsParamsMR_DistanceFromWeightedPointsParams_ConstructFromAnother (MR_PassBy _other_pass_by, MR_DistanceFromWeightedPointsParams *_other)
 
MRC_API void MR_DistanceFromWeightedPointsParams_Destroy (const MR_DistanceFromWeightedPointsParams *_this)
 Destroys a heap-allocated instance of MR_DistanceFromWeightedPointsParams. Does nothing if the pointer is null.
 
MRC_API void MR_DistanceFromWeightedPointsParams_DestroyArray (const MR_DistanceFromWeightedPointsParams *_this)
 Destroys a heap-allocated array of MR_DistanceFromWeightedPointsParams. Does nothing if the pointer is null.
 
MRC_API MR_DistanceFromWeightedPointsParamsMR_DistanceFromWeightedPointsParams_AssignFromAnother (MR_DistanceFromWeightedPointsParams *_this, MR_PassBy _other_pass_by, MR_DistanceFromWeightedPointsParams *_other)
 
MRC_API const float * MR_DistanceFromWeightedPointsComputeParams_Get_minBidirDist (const MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_minBidirDist (MR_DistanceFromWeightedPointsComputeParams *_this, float value)
 
MRC_API float * MR_DistanceFromWeightedPointsComputeParams_GetMutable_minBidirDist (MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API const float * MR_DistanceFromWeightedPointsComputeParams_Get_maxBidirDist (const MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_maxBidirDist (MR_DistanceFromWeightedPointsComputeParams *_this, float value)
 
MRC_API float * MR_DistanceFromWeightedPointsComputeParams_GetMutable_maxBidirDist (MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API const MR_std_function_float_from_MR_VertIdMR_DistanceFromWeightedPointsComputeParams_Get_pointWeight (const MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_pointWeight (MR_DistanceFromWeightedPointsComputeParams *_this, MR_PassBy value_pass_by, MR_std_function_float_from_MR_VertId *value)
 
MRC_API MR_std_function_float_from_MR_VertIdMR_DistanceFromWeightedPointsComputeParams_GetMutable_pointWeight (MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API const float * MR_DistanceFromWeightedPointsComputeParams_Get_minWeight (const MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_minWeight (MR_DistanceFromWeightedPointsComputeParams *_this, float value)
 
MRC_API float * MR_DistanceFromWeightedPointsComputeParams_GetMutable_minWeight (MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API const float * MR_DistanceFromWeightedPointsComputeParams_Get_maxWeight (const MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_maxWeight (MR_DistanceFromWeightedPointsComputeParams *_this, float value)
 
MRC_API float * MR_DistanceFromWeightedPointsComputeParams_GetMutable_maxWeight (MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API const float * MR_DistanceFromWeightedPointsComputeParams_Get_maxWeightGrad (const MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_maxWeightGrad (MR_DistanceFromWeightedPointsComputeParams *_this, float value)
 
MRC_API float * MR_DistanceFromWeightedPointsComputeParams_GetMutable_maxWeightGrad (MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API const bool * MR_DistanceFromWeightedPointsComputeParams_Get_bidirectionalMode (const MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_bidirectionalMode (MR_DistanceFromWeightedPointsComputeParams *_this, bool value)
 
MRC_API bool * MR_DistanceFromWeightedPointsComputeParams_GetMutable_bidirectionalMode (MR_DistanceFromWeightedPointsComputeParams *_this)
 
MRC_API MR_DistanceFromWeightedPointsComputeParamsMR_DistanceFromWeightedPointsComputeParams_DefaultConstruct (void)
 
MRC_API MR_DistanceFromWeightedPointsComputeParamsMR_DistanceFromWeightedPointsComputeParams_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_DistanceFromWeightedPointsComputeParamsMR_DistanceFromWeightedPointsComputeParams_OffsetPtr (const MR_DistanceFromWeightedPointsComputeParams *ptr, ptrdiff_t i)
 
MRC_API MR_DistanceFromWeightedPointsComputeParamsMR_DistanceFromWeightedPointsComputeParams_OffsetMutablePtr (MR_DistanceFromWeightedPointsComputeParams *ptr, ptrdiff_t i)
 
MRC_API const MR_DistanceFromWeightedPointsParamsMR_DistanceFromWeightedPointsComputeParams_UpcastTo_MR_DistanceFromWeightedPointsParams (const MR_DistanceFromWeightedPointsComputeParams *object)
 
MRC_API MR_DistanceFromWeightedPointsParamsMR_DistanceFromWeightedPointsComputeParams_MutableUpcastTo_MR_DistanceFromWeightedPointsParams (MR_DistanceFromWeightedPointsComputeParams *object)
 Upcasts an instance of MR::DistanceFromWeightedPointsComputeParams to its base class MR::DistanceFromWeightedPointsParams.
 
MRC_API MR_DistanceFromWeightedPointsComputeParamsMR_DistanceFromWeightedPointsComputeParams_ConstructFromAnother (MR_PassBy _other_pass_by, MR_DistanceFromWeightedPointsComputeParams *_other)
 
MRC_API void MR_DistanceFromWeightedPointsComputeParams_Destroy (const MR_DistanceFromWeightedPointsComputeParams *_this)
 Destroys a heap-allocated instance of MR_DistanceFromWeightedPointsComputeParams. Does nothing if the pointer is null.
 
MRC_API void MR_DistanceFromWeightedPointsComputeParams_DestroyArray (const MR_DistanceFromWeightedPointsComputeParams *_this)
 Destroys a heap-allocated array of MR_DistanceFromWeightedPointsComputeParams. Does nothing if the pointer is null.
 
MRC_API MR_DistanceFromWeightedPointsComputeParamsMR_DistanceFromWeightedPointsComputeParams_AssignFromAnother (MR_DistanceFromWeightedPointsComputeParams *_this, MR_PassBy _other_pass_by, MR_DistanceFromWeightedPointsComputeParams *_other)
 
MRC_API MR_PointAndDistanceMR_findClosestWeightedPoint (const MR_Vector3f *loc, const MR_AABBTreePoints *tree, const MR_DistanceFromWeightedPointsComputeParams *params)
 
MRC_API MR_MeshPointAndDistanceMR_findClosestWeightedMeshPoint (const MR_Vector3f *loc, const MR_Mesh *mesh, const MR_DistanceFromWeightedPointsComputeParams *params)
 

Typedef Documentation

◆ MR_AABBTreePoints

◆ MR_DistanceFromWeightedPointsComputeParams

Generated from class MR::DistanceFromWeightedPointsComputeParams. Base classes: Direct: (non-virtual) MR::DistanceFromWeightedPointsParams Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_DistanceFromWeightedPointsParams

Generated from class MR::DistanceFromWeightedPointsParams. Derived classes: Direct: (non-virtual) MR::DistanceFromWeightedPointsComputeParams Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

◆ MR_MeshPointAndDistance

Generated from class MR::MeshPointAndDistance. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_MeshTriPoint

◆ MR_PointAndDistance

Generated from class MR::PointAndDistance. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_std_function_float_from_MR_VertId

Function Documentation

◆ MR_DistanceFromWeightedPointsComputeParams_AssignFromAnother()

MRC_API MR_DistanceFromWeightedPointsComputeParams * MR_DistanceFromWeightedPointsComputeParams_AssignFromAnother ( MR_DistanceFromWeightedPointsComputeParams * _this,
MR_PassBy _other_pass_by,
MR_DistanceFromWeightedPointsComputeParams * _other )

Generated from method MR::DistanceFromWeightedPointsComputeParams::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_DistanceFromWeightedPointsComputeParams_ConstructFromAnother()

MRC_API MR_DistanceFromWeightedPointsComputeParams * MR_DistanceFromWeightedPointsComputeParams_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_DistanceFromWeightedPointsComputeParams * _other )

Generated from constructor MR::DistanceFromWeightedPointsComputeParams::DistanceFromWeightedPointsComputeParams. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_DistanceFromWeightedPointsComputeParams_Destroy() to free it when you're done using it.

◆ MR_DistanceFromWeightedPointsComputeParams_DefaultConstruct()

MRC_API MR_DistanceFromWeightedPointsComputeParams * MR_DistanceFromWeightedPointsComputeParams_DefaultConstruct ( void )

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

◆ MR_DistanceFromWeightedPointsComputeParams_DefaultConstructArray()

MRC_API MR_DistanceFromWeightedPointsComputeParams * MR_DistanceFromWeightedPointsComputeParams_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_DistanceFromWeightedPointsComputeParams_DestroyArray(). Use MR_DistanceFromWeightedPointsComputeParams_OffsetMutablePtr() and MR_DistanceFromWeightedPointsComputeParams_OffsetPtr() to access the array elements.

◆ MR_DistanceFromWeightedPointsComputeParams_Destroy()

MRC_API void MR_DistanceFromWeightedPointsComputeParams_Destroy ( const MR_DistanceFromWeightedPointsComputeParams * _this)

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

◆ MR_DistanceFromWeightedPointsComputeParams_DestroyArray()

MRC_API void MR_DistanceFromWeightedPointsComputeParams_DestroyArray ( const MR_DistanceFromWeightedPointsComputeParams * _this)

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

◆ MR_DistanceFromWeightedPointsComputeParams_Get_bidirectionalMode()

MRC_API const bool * MR_DistanceFromWeightedPointsComputeParams_Get_bidirectionalMode ( const MR_DistanceFromWeightedPointsComputeParams * _this)

for points, it must always true; for triangles: if true the distances grow in both directions from each triangle, reaching minimum in the triangle; if false the distances grow to infinity in the direction of triangle's normals, and decrease to minus infinity in the opposite direction Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named bidirectionalMode. 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_DistanceFromWeightedPointsComputeParams_Get_maxBidirDist()

MRC_API const float * MR_DistanceFromWeightedPointsComputeParams_Get_maxBidirDist ( const MR_DistanceFromWeightedPointsComputeParams * _this)

find the closest point only if weighted bidirectional distance to it is less than given value Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxBidirDist. 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_DistanceFromWeightedPointsComputeParams_Get_maxWeight()

MRC_API const float * MR_DistanceFromWeightedPointsComputeParams_Get_maxWeight ( const MR_DistanceFromWeightedPointsComputeParams * _this)

maximal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeight. 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_DistanceFromWeightedPointsComputeParams_Get_maxWeightGrad()

MRC_API const float * MR_DistanceFromWeightedPointsComputeParams_Get_maxWeightGrad ( const MR_DistanceFromWeightedPointsComputeParams * _this)

maximal magnitude of gradient of points' weight in the cloud, >=0; if maxWeightGrad < 1 then more search optimizations can be done Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeightGrad. 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_DistanceFromWeightedPointsComputeParams_Get_minBidirDist()

MRC_API const float * MR_DistanceFromWeightedPointsComputeParams_Get_minBidirDist ( const MR_DistanceFromWeightedPointsComputeParams * _this)

Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named minBidirDist. 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_DistanceFromWeightedPointsComputeParams_Get_minWeight()

MRC_API const float * MR_DistanceFromWeightedPointsComputeParams_Get_minWeight ( const MR_DistanceFromWeightedPointsComputeParams * _this)

minimal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named minWeight. 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_DistanceFromWeightedPointsComputeParams_Get_pointWeight()

MRC_API const MR_std_function_float_from_MR_VertId * MR_DistanceFromWeightedPointsComputeParams_Get_pointWeight ( const MR_DistanceFromWeightedPointsComputeParams * _this)

function returning the weight of each point, must be set by the user Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named pointWeight. 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_DistanceFromWeightedPointsComputeParams_GetMutable_bidirectionalMode()

MRC_API bool * MR_DistanceFromWeightedPointsComputeParams_GetMutable_bidirectionalMode ( MR_DistanceFromWeightedPointsComputeParams * _this)

for points, it must always true; for triangles: if true the distances grow in both directions from each triangle, reaching minimum in the triangle; if false the distances grow to infinity in the direction of triangle's normals, and decrease to minus infinity in the opposite direction Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named bidirectionalMode. 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_DistanceFromWeightedPointsComputeParams_GetMutable_maxBidirDist()

MRC_API float * MR_DistanceFromWeightedPointsComputeParams_GetMutable_maxBidirDist ( MR_DistanceFromWeightedPointsComputeParams * _this)

find the closest point only if weighted bidirectional distance to it is less than given value Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxBidirDist. 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_DistanceFromWeightedPointsComputeParams_GetMutable_maxWeight()

MRC_API float * MR_DistanceFromWeightedPointsComputeParams_GetMutable_maxWeight ( MR_DistanceFromWeightedPointsComputeParams * _this)

maximal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeight. 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_DistanceFromWeightedPointsComputeParams_GetMutable_maxWeightGrad()

MRC_API float * MR_DistanceFromWeightedPointsComputeParams_GetMutable_maxWeightGrad ( MR_DistanceFromWeightedPointsComputeParams * _this)

maximal magnitude of gradient of points' weight in the cloud, >=0; if maxWeightGrad < 1 then more search optimizations can be done Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeightGrad. 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_DistanceFromWeightedPointsComputeParams_GetMutable_minBidirDist()

MRC_API float * MR_DistanceFromWeightedPointsComputeParams_GetMutable_minBidirDist ( MR_DistanceFromWeightedPointsComputeParams * _this)

Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named minBidirDist. 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_DistanceFromWeightedPointsComputeParams_GetMutable_minWeight()

MRC_API float * MR_DistanceFromWeightedPointsComputeParams_GetMutable_minWeight ( MR_DistanceFromWeightedPointsComputeParams * _this)

minimal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named minWeight. 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_DistanceFromWeightedPointsComputeParams_GetMutable_pointWeight()

MRC_API MR_std_function_float_from_MR_VertId * MR_DistanceFromWeightedPointsComputeParams_GetMutable_pointWeight ( MR_DistanceFromWeightedPointsComputeParams * _this)

function returning the weight of each point, must be set by the user Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named pointWeight. 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_DistanceFromWeightedPointsComputeParams_MutableUpcastTo_MR_DistanceFromWeightedPointsParams()

MRC_API MR_DistanceFromWeightedPointsParams * MR_DistanceFromWeightedPointsComputeParams_MutableUpcastTo_MR_DistanceFromWeightedPointsParams ( MR_DistanceFromWeightedPointsComputeParams * object)

◆ MR_DistanceFromWeightedPointsComputeParams_OffsetMutablePtr()

MRC_API MR_DistanceFromWeightedPointsComputeParams * MR_DistanceFromWeightedPointsComputeParams_OffsetMutablePtr ( MR_DistanceFromWeightedPointsComputeParams * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_DistanceFromWeightedPointsComputeParams_OffsetPtr()

MRC_API const MR_DistanceFromWeightedPointsComputeParams * MR_DistanceFromWeightedPointsComputeParams_OffsetPtr ( const MR_DistanceFromWeightedPointsComputeParams * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_DistanceFromWeightedPointsComputeParams_Set_bidirectionalMode()

MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_bidirectionalMode ( MR_DistanceFromWeightedPointsComputeParams * _this,
bool value )

for points, it must always true; for triangles: if true the distances grow in both directions from each triangle, reaching minimum in the triangle; if false the distances grow to infinity in the direction of triangle's normals, and decrease to minus infinity in the opposite direction Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named bidirectionalMode. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in bidirectionalMode.

◆ MR_DistanceFromWeightedPointsComputeParams_Set_maxBidirDist()

MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_maxBidirDist ( MR_DistanceFromWeightedPointsComputeParams * _this,
float value )

find the closest point only if weighted bidirectional distance to it is less than given value Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxBidirDist. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in maxBidirDist.

◆ MR_DistanceFromWeightedPointsComputeParams_Set_maxWeight()

MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_maxWeight ( MR_DistanceFromWeightedPointsComputeParams * _this,
float value )

maximal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeight. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in maxWeight.

◆ MR_DistanceFromWeightedPointsComputeParams_Set_maxWeightGrad()

MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_maxWeightGrad ( MR_DistanceFromWeightedPointsComputeParams * _this,
float value )

maximal magnitude of gradient of points' weight in the cloud, >=0; if maxWeightGrad < 1 then more search optimizations can be done Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeightGrad. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in maxWeightGrad.

◆ MR_DistanceFromWeightedPointsComputeParams_Set_minBidirDist()

MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_minBidirDist ( MR_DistanceFromWeightedPointsComputeParams * _this,
float value )

Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named minBidirDist. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in minBidirDist.

◆ MR_DistanceFromWeightedPointsComputeParams_Set_minWeight()

MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_minWeight ( MR_DistanceFromWeightedPointsComputeParams * _this,
float value )

minimal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named minWeight. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in minWeight.

◆ MR_DistanceFromWeightedPointsComputeParams_Set_pointWeight()

MRC_API void MR_DistanceFromWeightedPointsComputeParams_Set_pointWeight ( MR_DistanceFromWeightedPointsComputeParams * _this,
MR_PassBy value_pass_by,
MR_std_function_float_from_MR_VertId * value )

function returning the weight of each point, must be set by the user Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named pointWeight. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element pointWeight. When this function is called, this object will drop object references it had previously in pointWeight.

◆ MR_DistanceFromWeightedPointsComputeParams_UpcastTo_MR_DistanceFromWeightedPointsParams()

MRC_API const MR_DistanceFromWeightedPointsParams * MR_DistanceFromWeightedPointsComputeParams_UpcastTo_MR_DistanceFromWeightedPointsParams ( const MR_DistanceFromWeightedPointsComputeParams * object)

Upcasts an instance of MR::DistanceFromWeightedPointsComputeParams to its base class MR::DistanceFromWeightedPointsParams. This version is acting on mutable pointers.

◆ MR_DistanceFromWeightedPointsParams_AssignFromAnother()

MRC_API MR_DistanceFromWeightedPointsParams * MR_DistanceFromWeightedPointsParams_AssignFromAnother ( MR_DistanceFromWeightedPointsParams * _this,
MR_PassBy _other_pass_by,
MR_DistanceFromWeightedPointsParams * _other )

Generated from method MR::DistanceFromWeightedPointsParams::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_DistanceFromWeightedPointsParams_ConstructFrom()

MRC_API MR_DistanceFromWeightedPointsParams * MR_DistanceFromWeightedPointsParams_ConstructFrom ( MR_PassBy pointWeight_pass_by,
MR_std_function_float_from_MR_VertId * pointWeight,
float minWeight,
float maxWeight,
float maxWeightGrad,
bool bidirectionalMode )

Constructs MR::DistanceFromWeightedPointsParams elementwise. The reference to the parameter pointWeight might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_DistanceFromWeightedPointsParams_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.

◆ MR_DistanceFromWeightedPointsParams_ConstructFromAnother()

MRC_API MR_DistanceFromWeightedPointsParams * MR_DistanceFromWeightedPointsParams_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_DistanceFromWeightedPointsParams * _other )

Generated from constructor MR::DistanceFromWeightedPointsParams::DistanceFromWeightedPointsParams. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_DistanceFromWeightedPointsParams_Destroy() to free it when you're done using it.

◆ MR_DistanceFromWeightedPointsParams_DefaultConstruct()

MRC_API MR_DistanceFromWeightedPointsParams * MR_DistanceFromWeightedPointsParams_DefaultConstruct ( void )

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

◆ MR_DistanceFromWeightedPointsParams_DefaultConstructArray()

MRC_API MR_DistanceFromWeightedPointsParams * MR_DistanceFromWeightedPointsParams_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_DistanceFromWeightedPointsParams_DestroyArray(). Use MR_DistanceFromWeightedPointsParams_OffsetMutablePtr() and MR_DistanceFromWeightedPointsParams_OffsetPtr() to access the array elements.

◆ MR_DistanceFromWeightedPointsParams_Destroy()

MRC_API void MR_DistanceFromWeightedPointsParams_Destroy ( const MR_DistanceFromWeightedPointsParams * _this)

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

◆ MR_DistanceFromWeightedPointsParams_DestroyArray()

MRC_API void MR_DistanceFromWeightedPointsParams_DestroyArray ( const MR_DistanceFromWeightedPointsParams * _this)

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

◆ MR_DistanceFromWeightedPointsParams_Get_bidirectionalMode()

MRC_API const bool * MR_DistanceFromWeightedPointsParams_Get_bidirectionalMode ( const MR_DistanceFromWeightedPointsParams * _this)

for points, it must always true; for triangles: if true the distances grow in both directions from each triangle, reaching minimum in the triangle; if false the distances grow to infinity in the direction of triangle's normals, and decrease to minus infinity in the opposite direction Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsParams named bidirectionalMode. 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_DistanceFromWeightedPointsParams_Get_maxWeight()

MRC_API const float * MR_DistanceFromWeightedPointsParams_Get_maxWeight ( const MR_DistanceFromWeightedPointsParams * _this)

maximal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsParams named maxWeight. 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_DistanceFromWeightedPointsParams_Get_maxWeightGrad()

MRC_API const float * MR_DistanceFromWeightedPointsParams_Get_maxWeightGrad ( const MR_DistanceFromWeightedPointsParams * _this)

maximal magnitude of gradient of points' weight in the cloud, >=0; if maxWeightGrad < 1 then more search optimizations can be done Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsParams named maxWeightGrad. 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_DistanceFromWeightedPointsParams_Get_minWeight()

MRC_API const float * MR_DistanceFromWeightedPointsParams_Get_minWeight ( const MR_DistanceFromWeightedPointsParams * _this)

minimal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsParams named minWeight. 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_DistanceFromWeightedPointsParams_Get_pointWeight()

MRC_API const MR_std_function_float_from_MR_VertId * MR_DistanceFromWeightedPointsParams_Get_pointWeight ( const MR_DistanceFromWeightedPointsParams * _this)

function returning the weight of each point, must be set by the user Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsParams named pointWeight. 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_DistanceFromWeightedPointsParams_GetMutable_bidirectionalMode()

MRC_API bool * MR_DistanceFromWeightedPointsParams_GetMutable_bidirectionalMode ( MR_DistanceFromWeightedPointsParams * _this)

for points, it must always true; for triangles: if true the distances grow in both directions from each triangle, reaching minimum in the triangle; if false the distances grow to infinity in the direction of triangle's normals, and decrease to minus infinity in the opposite direction Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsParams named bidirectionalMode. 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_DistanceFromWeightedPointsParams_GetMutable_maxWeight()

MRC_API float * MR_DistanceFromWeightedPointsParams_GetMutable_maxWeight ( MR_DistanceFromWeightedPointsParams * _this)

maximal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsParams named maxWeight. 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_DistanceFromWeightedPointsParams_GetMutable_maxWeightGrad()

MRC_API float * MR_DistanceFromWeightedPointsParams_GetMutable_maxWeightGrad ( MR_DistanceFromWeightedPointsParams * _this)

maximal magnitude of gradient of points' weight in the cloud, >=0; if maxWeightGrad < 1 then more search optimizations can be done Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsParams named maxWeightGrad. 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_DistanceFromWeightedPointsParams_GetMutable_minWeight()

MRC_API float * MR_DistanceFromWeightedPointsParams_GetMutable_minWeight ( MR_DistanceFromWeightedPointsParams * _this)

minimal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsParams named minWeight. 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_DistanceFromWeightedPointsParams_GetMutable_pointWeight()

MRC_API MR_std_function_float_from_MR_VertId * MR_DistanceFromWeightedPointsParams_GetMutable_pointWeight ( MR_DistanceFromWeightedPointsParams * _this)

function returning the weight of each point, must be set by the user Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsParams named pointWeight. 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_DistanceFromWeightedPointsParams_MutableStaticDowncastTo_MR_DistanceFromWeightedPointsComputeParams()

MRC_API MR_DistanceFromWeightedPointsComputeParams * MR_DistanceFromWeightedPointsParams_MutableStaticDowncastTo_MR_DistanceFromWeightedPointsComputeParams ( MR_DistanceFromWeightedPointsParams * object)

Downcasts an instance of MR::DistanceFromWeightedPointsParams to a derived class MR::DistanceFromWeightedPointsComputeParams. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise.

◆ MR_DistanceFromWeightedPointsParams_OffsetMutablePtr()

MRC_API MR_DistanceFromWeightedPointsParams * MR_DistanceFromWeightedPointsParams_OffsetMutablePtr ( MR_DistanceFromWeightedPointsParams * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_DistanceFromWeightedPointsParams_OffsetPtr()

MRC_API const MR_DistanceFromWeightedPointsParams * MR_DistanceFromWeightedPointsParams_OffsetPtr ( const MR_DistanceFromWeightedPointsParams * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_DistanceFromWeightedPointsParams_Set_bidirectionalMode()

MRC_API void MR_DistanceFromWeightedPointsParams_Set_bidirectionalMode ( MR_DistanceFromWeightedPointsParams * _this,
bool value )

for points, it must always true; for triangles: if true the distances grow in both directions from each triangle, reaching minimum in the triangle; if false the distances grow to infinity in the direction of triangle's normals, and decrease to minus infinity in the opposite direction Modifies a member variable of class MR::DistanceFromWeightedPointsParams named bidirectionalMode. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in bidirectionalMode.

◆ MR_DistanceFromWeightedPointsParams_Set_maxWeight()

MRC_API void MR_DistanceFromWeightedPointsParams_Set_maxWeight ( MR_DistanceFromWeightedPointsParams * _this,
float value )

maximal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Modifies a member variable of class MR::DistanceFromWeightedPointsParams named maxWeight. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in maxWeight.

◆ MR_DistanceFromWeightedPointsParams_Set_maxWeightGrad()

MRC_API void MR_DistanceFromWeightedPointsParams_Set_maxWeightGrad ( MR_DistanceFromWeightedPointsParams * _this,
float value )

maximal magnitude of gradient of points' weight in the cloud, >=0; if maxWeightGrad < 1 then more search optimizations can be done Modifies a member variable of class MR::DistanceFromWeightedPointsParams named maxWeightGrad. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in maxWeightGrad.

◆ MR_DistanceFromWeightedPointsParams_Set_minWeight()

MRC_API void MR_DistanceFromWeightedPointsParams_Set_minWeight ( MR_DistanceFromWeightedPointsParams * _this,
float value )

minimal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Modifies a member variable of class MR::DistanceFromWeightedPointsParams named minWeight. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in minWeight.

◆ MR_DistanceFromWeightedPointsParams_Set_pointWeight()

MRC_API void MR_DistanceFromWeightedPointsParams_Set_pointWeight ( MR_DistanceFromWeightedPointsParams * _this,
MR_PassBy value_pass_by,
MR_std_function_float_from_MR_VertId * value )

function returning the weight of each point, must be set by the user Modifies a member variable of class MR::DistanceFromWeightedPointsParams named pointWeight. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element pointWeight. When this function is called, this object will drop object references it had previously in pointWeight.

◆ MR_DistanceFromWeightedPointsParams_StaticDowncastTo_MR_DistanceFromWeightedPointsComputeParams()

MRC_API const MR_DistanceFromWeightedPointsComputeParams * MR_DistanceFromWeightedPointsParams_StaticDowncastTo_MR_DistanceFromWeightedPointsComputeParams ( const MR_DistanceFromWeightedPointsParams * object)

Downcasts an instance of MR::DistanceFromWeightedPointsParams to a derived class MR::DistanceFromWeightedPointsComputeParams. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. This version is acting on mutable pointers.

◆ MR_findClosestWeightedMeshPoint()

MRC_API MR_MeshPointAndDistance * MR_findClosestWeightedMeshPoint ( const MR_Vector3f * loc,
const MR_Mesh * mesh,
const MR_DistanceFromWeightedPointsComputeParams * params )

consider a mesh where each vertex has additive weight, and this weight is linearly interpolated in mesh triangles, and the distance to a point is considered equal to (euclidean distance - weight), finds the point on given mesh with minimal distance to given 3D location Generated from function MR::findClosestWeightedMeshPoint. Parameter loc can not be null. It is a single object. Parameter mesh can not be null. It is a single object. Parameter params can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshPointAndDistance_Destroy() to free it when you're done using it.

◆ MR_findClosestWeightedPoint()

MRC_API MR_PointAndDistance * MR_findClosestWeightedPoint ( const MR_Vector3f * loc,
const MR_AABBTreePoints * tree,
const MR_DistanceFromWeightedPointsComputeParams * params )

consider a point cloud where each point has additive weight, and the distance to a point is considered equal to (euclidean distance - weight), finds the point with minimal distance to given 3D location Generated from function MR::findClosestWeightedPoint. Parameter loc can not be null. It is a single object. Parameter tree can not be null. It is a single object. Parameter params can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_PointAndDistance_Destroy() to free it when you're done using it.

◆ MR_MeshPointAndDistance_AssignFromAnother()

MRC_API MR_MeshPointAndDistance * MR_MeshPointAndDistance_AssignFromAnother ( MR_MeshPointAndDistance * _this,
const MR_MeshPointAndDistance * _other )

Generated from method MR::MeshPointAndDistance::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_MeshPointAndDistance_bidirDist()

MRC_API float MR_MeshPointAndDistance_bidirDist ( const MR_MeshPointAndDistance * _this)

bidirectional distance from input location to mtp considering point's weight Generated from method MR::MeshPointAndDistance::bidirDist. Parameter _this can not be null. It is a single object.

◆ MR_MeshPointAndDistance_ConstructFrom()

MRC_API MR_MeshPointAndDistance * MR_MeshPointAndDistance_ConstructFrom ( MR_Vector3f loc,
const MR_MeshTriPoint * mtp,
float eucledeanDist,
float w,
bool bidirectionalOrOutside )

Constructs MR::MeshPointAndDistance elementwise. The reference to the parameter loc might be preserved in the constructed object. Parameter mtp can not be null. It is a single object. The reference to the parameter mtp might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshPointAndDistance_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.

◆ MR_MeshPointAndDistance_ConstructFromAnother()

MRC_API MR_MeshPointAndDistance * MR_MeshPointAndDistance_ConstructFromAnother ( const MR_MeshPointAndDistance * _other)

Generated from constructor MR::MeshPointAndDistance::MeshPointAndDistance. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshPointAndDistance_Destroy() to free it when you're done using it.

◆ MR_MeshPointAndDistance_ConvertTo_bool()

MRC_API bool MR_MeshPointAndDistance_ConvertTo_bool ( const MR_MeshPointAndDistance * _this)

Generated from conversion operator MR::MeshPointAndDistance::operator bool. Parameter _this can not be null. It is a single object.

◆ MR_MeshPointAndDistance_DefaultConstruct()

MRC_API MR_MeshPointAndDistance * MR_MeshPointAndDistance_DefaultConstruct ( void )

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

◆ MR_MeshPointAndDistance_DefaultConstructArray()

MRC_API MR_MeshPointAndDistance * MR_MeshPointAndDistance_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_MeshPointAndDistance_DestroyArray(). Use MR_MeshPointAndDistance_OffsetMutablePtr() and MR_MeshPointAndDistance_OffsetPtr() to access the array elements.

◆ MR_MeshPointAndDistance_Destroy()

MRC_API void MR_MeshPointAndDistance_Destroy ( const MR_MeshPointAndDistance * _this)

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

◆ MR_MeshPointAndDistance_DestroyArray()

MRC_API void MR_MeshPointAndDistance_DestroyArray ( const MR_MeshPointAndDistance * _this)

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

◆ MR_MeshPointAndDistance_dist()

MRC_API float MR_MeshPointAndDistance_dist ( const MR_MeshPointAndDistance * _this)

the distance from input location to mtp considering point's weight and location inside/outside; dist() is continuous function of location unlike innerDist(), which makes 2*weight jump if the location moves through the surface Generated from method MR::MeshPointAndDistance::dist. Parameter _this can not be null. It is a single object.

◆ MR_MeshPointAndDistance_Get_bidirectionalOrOutside()

MRC_API const bool * MR_MeshPointAndDistance_Get_bidirectionalOrOutside ( const MR_MeshPointAndDistance * _this)

either 1) bidirectional distances are computed, or 2) input location is locally outside of the surface (by pseudonormal) used for optimization Returns a pointer to a member variable of class MR::MeshPointAndDistance named bidirectionalOrOutside. 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_MeshPointAndDistance_Get_eucledeanDist()

MRC_API const float * MR_MeshPointAndDistance_Get_eucledeanDist ( const MR_MeshPointAndDistance * _this)

euclidean distance from input location to mtp Returns a pointer to a member variable of class MR::MeshPointAndDistance named eucledeanDist. 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_MeshPointAndDistance_Get_loc()

MRC_API const MR_Vector3f * MR_MeshPointAndDistance_Get_loc ( const MR_MeshPointAndDistance * _this)

point location Returns a pointer to a member variable of class MR::MeshPointAndDistance named loc. 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_MeshPointAndDistance_Get_mtp()

MRC_API const MR_MeshTriPoint * MR_MeshPointAndDistance_Get_mtp ( const MR_MeshPointAndDistance * _this)

the corresponding point on mesh in barycentric representation Returns a pointer to a member variable of class MR::MeshPointAndDistance named mtp. 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_MeshPointAndDistance_Get_w()

MRC_API const float * MR_MeshPointAndDistance_Get_w ( const MR_MeshPointAndDistance * _this)

point's weight Returns a pointer to a member variable of class MR::MeshPointAndDistance named w. 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_MeshPointAndDistance_GetMutable_bidirectionalOrOutside()

MRC_API bool * MR_MeshPointAndDistance_GetMutable_bidirectionalOrOutside ( MR_MeshPointAndDistance * _this)

either 1) bidirectional distances are computed, or 2) input location is locally outside of the surface (by pseudonormal) used for optimization Returns a mutable pointer to a member variable of class MR::MeshPointAndDistance named bidirectionalOrOutside. 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_MeshPointAndDistance_GetMutable_eucledeanDist()

MRC_API float * MR_MeshPointAndDistance_GetMutable_eucledeanDist ( MR_MeshPointAndDistance * _this)

euclidean distance from input location to mtp Returns a mutable pointer to a member variable of class MR::MeshPointAndDistance named eucledeanDist. 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_MeshPointAndDistance_GetMutable_loc()

MRC_API MR_Vector3f * MR_MeshPointAndDistance_GetMutable_loc ( MR_MeshPointAndDistance * _this)

point location Returns a mutable pointer to a member variable of class MR::MeshPointAndDistance named loc. 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_MeshPointAndDistance_GetMutable_mtp()

MRC_API MR_MeshTriPoint * MR_MeshPointAndDistance_GetMutable_mtp ( MR_MeshPointAndDistance * _this)

the corresponding point on mesh in barycentric representation Returns a mutable pointer to a member variable of class MR::MeshPointAndDistance named mtp. 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_MeshPointAndDistance_GetMutable_w()

MRC_API float * MR_MeshPointAndDistance_GetMutable_w ( MR_MeshPointAndDistance * _this)

point's weight Returns a mutable pointer to a member variable of class MR::MeshPointAndDistance named w. 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_MeshPointAndDistance_OffsetMutablePtr()

MRC_API MR_MeshPointAndDistance * MR_MeshPointAndDistance_OffsetMutablePtr ( MR_MeshPointAndDistance * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_MeshPointAndDistance_OffsetPtr()

MRC_API const MR_MeshPointAndDistance * MR_MeshPointAndDistance_OffsetPtr ( const MR_MeshPointAndDistance * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_MeshPointAndDistance_Set_bidirectionalOrOutside()

MRC_API void MR_MeshPointAndDistance_Set_bidirectionalOrOutside ( MR_MeshPointAndDistance * _this,
bool value )

either 1) bidirectional distances are computed, or 2) input location is locally outside of the surface (by pseudonormal) used for optimization Modifies a member variable of class MR::MeshPointAndDistance named bidirectionalOrOutside. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in bidirectionalOrOutside.

◆ MR_MeshPointAndDistance_Set_eucledeanDist()

MRC_API void MR_MeshPointAndDistance_Set_eucledeanDist ( MR_MeshPointAndDistance * _this,
float value )

euclidean distance from input location to mtp Modifies a member variable of class MR::MeshPointAndDistance named eucledeanDist. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in eucledeanDist.

◆ MR_MeshPointAndDistance_Set_loc()

MRC_API void MR_MeshPointAndDistance_Set_loc ( MR_MeshPointAndDistance * _this,
MR_Vector3f value )

point location Modifies a member variable of class MR::MeshPointAndDistance named loc. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element loc. When this function is called, this object will drop object references it had previously in loc.

◆ MR_MeshPointAndDistance_Set_mtp()

MRC_API void MR_MeshPointAndDistance_Set_mtp ( MR_MeshPointAndDistance * _this,
const MR_MeshTriPoint * value )

the corresponding point on mesh in barycentric representation Modifies a member variable of class MR::MeshPointAndDistance named mtp. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element mtp. When this function is called, this object will drop object references it had previously in mtp.

◆ MR_MeshPointAndDistance_Set_w()

MRC_API void MR_MeshPointAndDistance_Set_w ( MR_MeshPointAndDistance * _this,
float value )

point's weight Modifies a member variable of class MR::MeshPointAndDistance named w. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in w.

◆ MR_MeshPointAndDistance_valid()

MRC_API bool MR_MeshPointAndDistance_valid ( const MR_MeshPointAndDistance * _this)

check for validity, otherwise there is no point closer than maxBidirDist Generated from method MR::MeshPointAndDistance::valid. Parameter _this can not be null. It is a single object.

◆ MR_PointAndDistance_AssignFromAnother()

MRC_API MR_PointAndDistance * MR_PointAndDistance_AssignFromAnother ( MR_PointAndDistance * _this,
const MR_PointAndDistance * _other )

Generated from method MR::PointAndDistance::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_PointAndDistance_ConstructFrom()

MRC_API MR_PointAndDistance * MR_PointAndDistance_ConstructFrom ( MR_VertId vId,
float dist )

Constructs MR::PointAndDistance elementwise. The reference to the parameter vId might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_PointAndDistance_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.

◆ MR_PointAndDistance_ConstructFromAnother()

MRC_API MR_PointAndDistance * MR_PointAndDistance_ConstructFromAnother ( const MR_PointAndDistance * _other)

Generated from constructor MR::PointAndDistance::PointAndDistance. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_PointAndDistance_Destroy() to free it when you're done using it.

◆ MR_PointAndDistance_ConvertTo_bool()

MRC_API bool MR_PointAndDistance_ConvertTo_bool ( const MR_PointAndDistance * _this)

Generated from conversion operator MR::PointAndDistance::operator bool. Parameter _this can not be null. It is a single object.

◆ MR_PointAndDistance_DefaultConstruct()

MRC_API MR_PointAndDistance * MR_PointAndDistance_DefaultConstruct ( void )

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

◆ MR_PointAndDistance_DefaultConstructArray()

MRC_API MR_PointAndDistance * MR_PointAndDistance_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_PointAndDistance_DestroyArray(). Use MR_PointAndDistance_OffsetMutablePtr() and MR_PointAndDistance_OffsetPtr() to access the array elements.

◆ MR_PointAndDistance_Destroy()

MRC_API void MR_PointAndDistance_Destroy ( const MR_PointAndDistance * _this)

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

◆ MR_PointAndDistance_DestroyArray()

MRC_API void MR_PointAndDistance_DestroyArray ( const MR_PointAndDistance * _this)

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

◆ MR_PointAndDistance_Get_dist()

MRC_API const float * MR_PointAndDistance_Get_dist ( const MR_PointAndDistance * _this)

the distance from input location to point vId considering point's weight Returns a pointer to a member variable of class MR::PointAndDistance named dist. 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_PointAndDistance_Get_vId()

MRC_API const MR_VertId * MR_PointAndDistance_Get_vId ( const MR_PointAndDistance * _this)

a cloud's point Returns a pointer to a member variable of class MR::PointAndDistance named vId. 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_PointAndDistance_GetMutable_dist()

MRC_API float * MR_PointAndDistance_GetMutable_dist ( MR_PointAndDistance * _this)

the distance from input location to point vId considering point's weight Returns a mutable pointer to a member variable of class MR::PointAndDistance named dist. 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_PointAndDistance_GetMutable_vId()

MRC_API MR_VertId * MR_PointAndDistance_GetMutable_vId ( MR_PointAndDistance * _this)

a cloud's point Returns a mutable pointer to a member variable of class MR::PointAndDistance named vId. 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_PointAndDistance_OffsetMutablePtr()

MRC_API MR_PointAndDistance * MR_PointAndDistance_OffsetMutablePtr ( MR_PointAndDistance * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_PointAndDistance_OffsetPtr()

MRC_API const MR_PointAndDistance * MR_PointAndDistance_OffsetPtr ( const MR_PointAndDistance * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_PointAndDistance_Set_dist()

MRC_API void MR_PointAndDistance_Set_dist ( MR_PointAndDistance * _this,
float value )

the distance from input location to point vId considering point's weight Modifies a member variable of class MR::PointAndDistance named dist. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in dist.

◆ MR_PointAndDistance_Set_vId()

MRC_API void MR_PointAndDistance_Set_vId ( MR_PointAndDistance * _this,
MR_VertId value )

a cloud's point Modifies a member variable of class MR::PointAndDistance named vId. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element vId. When this function is called, this object will drop object references it had previously in vId.

◆ MR_PointAndDistance_valid()

MRC_API bool MR_PointAndDistance_valid ( const MR_PointAndDistance * _this)

check for validity, otherwise there is no point closer than maxBidirDist Generated from method MR::PointAndDistance::valid. Parameter _this can not be null. It is a single object.