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

Go to the source code of this file.

Typedefs

typedef struct MR_MeshApproxRelaxParams MR_MeshApproxRelaxParams
 
typedef struct MR_MeshEqualizeTriAreasParams MR_MeshEqualizeTriAreasParams
 
typedef struct MR_MeshRelaxParams MR_MeshRelaxParams
 
typedef struct MR_PointCloudApproxRelaxParams MR_PointCloudApproxRelaxParams
 
typedef struct MR_PointCloudRelaxParams MR_PointCloudRelaxParams
 
typedef struct MR_VertBitSet MR_VertBitSet
 
typedef struct MR_RelaxParams MR_RelaxParams
 
typedef enum MR_RelaxApproxType MR_RelaxApproxType
 

Enumerations

enum  MR_RelaxApproxType { MR_RelaxApproxType_Planar = 0 , MR_RelaxApproxType_Quadric = 1 }
 

Functions

MRC_API const int * MR_RelaxParams_Get_iterations (const MR_RelaxParams *_this)
 
MRC_API void MR_RelaxParams_Set_iterations (MR_RelaxParams *_this, int value)
 
MRC_API int * MR_RelaxParams_GetMutable_iterations (MR_RelaxParams *_this)
 
MRC_API const MR_VertBitSet *const * MR_RelaxParams_Get_region (const MR_RelaxParams *_this)
 
MRC_API void MR_RelaxParams_Set_region (MR_RelaxParams *_this, const MR_VertBitSet *value)
 
MRC_API const MR_VertBitSet ** MR_RelaxParams_GetMutable_region (MR_RelaxParams *_this)
 
MRC_API const float * MR_RelaxParams_Get_force (const MR_RelaxParams *_this)
 
MRC_API void MR_RelaxParams_Set_force (MR_RelaxParams *_this, float value)
 
MRC_API float * MR_RelaxParams_GetMutable_force (MR_RelaxParams *_this)
 
MRC_API const bool * MR_RelaxParams_Get_limitNearInitial (const MR_RelaxParams *_this)
 
MRC_API void MR_RelaxParams_Set_limitNearInitial (MR_RelaxParams *_this, bool value)
 
MRC_API bool * MR_RelaxParams_GetMutable_limitNearInitial (MR_RelaxParams *_this)
 
MRC_API const float * MR_RelaxParams_Get_maxInitialDist (const MR_RelaxParams *_this)
 
MRC_API void MR_RelaxParams_Set_maxInitialDist (MR_RelaxParams *_this, float value)
 
MRC_API float * MR_RelaxParams_GetMutable_maxInitialDist (MR_RelaxParams *_this)
 
MRC_API MR_RelaxParamsMR_RelaxParams_DefaultConstruct (void)
 
MRC_API MR_RelaxParamsMR_RelaxParams_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_RelaxParamsMR_RelaxParams_OffsetPtr (const MR_RelaxParams *ptr, ptrdiff_t i)
 
MRC_API MR_RelaxParamsMR_RelaxParams_OffsetMutablePtr (MR_RelaxParams *ptr, ptrdiff_t i)
 
MRC_API const MR_MeshApproxRelaxParamsMR_RelaxParams_StaticDowncastTo_MR_MeshApproxRelaxParams (const MR_RelaxParams *object)
 
MRC_API MR_MeshApproxRelaxParamsMR_RelaxParams_MutableStaticDowncastTo_MR_MeshApproxRelaxParams (MR_RelaxParams *object)
 
MRC_API const MR_MeshEqualizeTriAreasParamsMR_RelaxParams_StaticDowncastTo_MR_MeshEqualizeTriAreasParams (const MR_RelaxParams *object)
 
MRC_API MR_MeshEqualizeTriAreasParamsMR_RelaxParams_MutableStaticDowncastTo_MR_MeshEqualizeTriAreasParams (MR_RelaxParams *object)
 
MRC_API const MR_MeshRelaxParamsMR_RelaxParams_StaticDowncastTo_MR_MeshRelaxParams (const MR_RelaxParams *object)
 
MRC_API MR_MeshRelaxParamsMR_RelaxParams_MutableStaticDowncastTo_MR_MeshRelaxParams (MR_RelaxParams *object)
 
MRC_API const MR_PointCloudApproxRelaxParamsMR_RelaxParams_StaticDowncastTo_MR_PointCloudApproxRelaxParams (const MR_RelaxParams *object)
 
MRC_API MR_PointCloudApproxRelaxParamsMR_RelaxParams_MutableStaticDowncastTo_MR_PointCloudApproxRelaxParams (MR_RelaxParams *object)
 
MRC_API const MR_PointCloudRelaxParamsMR_RelaxParams_StaticDowncastTo_MR_PointCloudRelaxParams (const MR_RelaxParams *object)
 
MRC_API MR_PointCloudRelaxParamsMR_RelaxParams_MutableStaticDowncastTo_MR_PointCloudRelaxParams (MR_RelaxParams *object)
 
MRC_API MR_RelaxParamsMR_RelaxParams_ConstructFromAnother (const MR_RelaxParams *_other)
 
MRC_API void MR_RelaxParams_Destroy (const MR_RelaxParams *_this)
 Destroys a heap-allocated instance of MR_RelaxParams. Does nothing if the pointer is null.
 
MRC_API void MR_RelaxParams_DestroyArray (const MR_RelaxParams *_this)
 Destroys a heap-allocated array of MR_RelaxParams. Does nothing if the pointer is null.
 
MRC_API MR_RelaxParamsMR_RelaxParams_AssignFromAnother (MR_RelaxParams *_this, const MR_RelaxParams *_other)
 

Typedef Documentation

◆ MR_MeshApproxRelaxParams

◆ MR_MeshEqualizeTriAreasParams

◆ MR_MeshRelaxParams

◆ MR_PointCloudApproxRelaxParams

◆ MR_PointCloudRelaxParams

◆ MR_RelaxApproxType

◆ MR_RelaxParams

Generated from class MR::RelaxParams. Derived classes: Direct: (non-virtual) MR::MeshRelaxParams MR::PointCloudRelaxParams Indirect: (non-virtual) MR::MeshApproxRelaxParams MR::MeshEqualizeTriAreasParams MR::PointCloudApproxRelaxParams 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_VertBitSet

typedef struct MR_VertBitSet MR_VertBitSet

Enumeration Type Documentation

◆ MR_RelaxApproxType

Enumerator
MR_RelaxApproxType_Planar 
MR_RelaxApproxType_Quadric 

Function Documentation

◆ MR_RelaxParams_AssignFromAnother()

MRC_API MR_RelaxParams * MR_RelaxParams_AssignFromAnother ( MR_RelaxParams * _this,
const MR_RelaxParams * _other )

Generated from method MR::RelaxParams::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_RelaxParams_ConstructFromAnother()

MRC_API MR_RelaxParams * MR_RelaxParams_ConstructFromAnother ( const MR_RelaxParams * _other)

Generated from constructor MR::RelaxParams::RelaxParams. 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_RelaxParams_Destroy() to free it when you're done using it.

◆ MR_RelaxParams_DefaultConstruct()

MRC_API MR_RelaxParams * MR_RelaxParams_DefaultConstruct ( void )

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

◆ MR_RelaxParams_DefaultConstructArray()

MRC_API MR_RelaxParams * MR_RelaxParams_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_RelaxParams_DestroyArray(). Use MR_RelaxParams_OffsetMutablePtr() and MR_RelaxParams_OffsetPtr() to access the array elements.

◆ MR_RelaxParams_Destroy()

MRC_API void MR_RelaxParams_Destroy ( const MR_RelaxParams * _this)

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

◆ MR_RelaxParams_DestroyArray()

MRC_API void MR_RelaxParams_DestroyArray ( const MR_RelaxParams * _this)

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

◆ MR_RelaxParams_Get_force()

MRC_API const float * MR_RelaxParams_Get_force ( const MR_RelaxParams * _this)

speed of relaxing, typical values (0.0, 0.5] Returns a pointer to a member variable of class MR::RelaxParams named force. 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_RelaxParams_Get_iterations()

MRC_API const int * MR_RelaxParams_Get_iterations ( const MR_RelaxParams * _this)

number of iterations Returns a pointer to a member variable of class MR::RelaxParams named iterations. 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_RelaxParams_Get_limitNearInitial()

MRC_API const bool * MR_RelaxParams_Get_limitNearInitial ( const MR_RelaxParams * _this)

if true then maximal displacement of each point during denoising will be limited Returns a pointer to a member variable of class MR::RelaxParams named limitNearInitial. 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_RelaxParams_Get_maxInitialDist()

MRC_API const float * MR_RelaxParams_Get_maxInitialDist ( const MR_RelaxParams * _this)

maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false Returns a pointer to a member variable of class MR::RelaxParams named maxInitialDist. 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_RelaxParams_Get_region()

MRC_API const MR_VertBitSet *const * MR_RelaxParams_Get_region ( const MR_RelaxParams * _this)

region to relax Returns a pointer to a member variable of class MR::RelaxParams named region. 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_RelaxParams_GetMutable_force()

MRC_API float * MR_RelaxParams_GetMutable_force ( MR_RelaxParams * _this)

speed of relaxing, typical values (0.0, 0.5] Returns a mutable pointer to a member variable of class MR::RelaxParams named force. 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_RelaxParams_GetMutable_iterations()

MRC_API int * MR_RelaxParams_GetMutable_iterations ( MR_RelaxParams * _this)

number of iterations Returns a mutable pointer to a member variable of class MR::RelaxParams named iterations. 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_RelaxParams_GetMutable_limitNearInitial()

MRC_API bool * MR_RelaxParams_GetMutable_limitNearInitial ( MR_RelaxParams * _this)

if true then maximal displacement of each point during denoising will be limited Returns a mutable pointer to a member variable of class MR::RelaxParams named limitNearInitial. 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_RelaxParams_GetMutable_maxInitialDist()

MRC_API float * MR_RelaxParams_GetMutable_maxInitialDist ( MR_RelaxParams * _this)

maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false Returns a mutable pointer to a member variable of class MR::RelaxParams named maxInitialDist. 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_RelaxParams_GetMutable_region()

MRC_API const MR_VertBitSet ** MR_RelaxParams_GetMutable_region ( MR_RelaxParams * _this)

region to relax Returns a mutable pointer to a member variable of class MR::RelaxParams named region. 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_RelaxParams_MutableStaticDowncastTo_MR_MeshApproxRelaxParams()

MRC_API MR_MeshApproxRelaxParams * MR_RelaxParams_MutableStaticDowncastTo_MR_MeshApproxRelaxParams ( MR_RelaxParams * object)

Downcasts an instance of MR::RelaxParams to a derived class MR::MeshApproxRelaxParams. 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_RelaxParams_MutableStaticDowncastTo_MR_MeshEqualizeTriAreasParams()

MRC_API MR_MeshEqualizeTriAreasParams * MR_RelaxParams_MutableStaticDowncastTo_MR_MeshEqualizeTriAreasParams ( MR_RelaxParams * object)

Downcasts an instance of MR::RelaxParams to a derived class MR::MeshEqualizeTriAreasParams. 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_RelaxParams_MutableStaticDowncastTo_MR_MeshRelaxParams()

MRC_API MR_MeshRelaxParams * MR_RelaxParams_MutableStaticDowncastTo_MR_MeshRelaxParams ( MR_RelaxParams * object)

Downcasts an instance of MR::RelaxParams to a derived class MR::MeshRelaxParams. 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_RelaxParams_MutableStaticDowncastTo_MR_PointCloudApproxRelaxParams()

MRC_API MR_PointCloudApproxRelaxParams * MR_RelaxParams_MutableStaticDowncastTo_MR_PointCloudApproxRelaxParams ( MR_RelaxParams * object)

Downcasts an instance of MR::RelaxParams to a derived class MR::PointCloudApproxRelaxParams. 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_RelaxParams_MutableStaticDowncastTo_MR_PointCloudRelaxParams()

MRC_API MR_PointCloudRelaxParams * MR_RelaxParams_MutableStaticDowncastTo_MR_PointCloudRelaxParams ( MR_RelaxParams * object)

Downcasts an instance of MR::RelaxParams to a derived class MR::PointCloudRelaxParams. 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_RelaxParams_OffsetMutablePtr()

MRC_API MR_RelaxParams * MR_RelaxParams_OffsetMutablePtr ( MR_RelaxParams * 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_RelaxParams_OffsetPtr()

MRC_API const MR_RelaxParams * MR_RelaxParams_OffsetPtr ( const MR_RelaxParams * 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_RelaxParams_Set_force()

MRC_API void MR_RelaxParams_Set_force ( MR_RelaxParams * _this,
float value )

speed of relaxing, typical values (0.0, 0.5] Modifies a member variable of class MR::RelaxParams named force. 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 force.

◆ MR_RelaxParams_Set_iterations()

MRC_API void MR_RelaxParams_Set_iterations ( MR_RelaxParams * _this,
int value )

number of iterations Modifies a member variable of class MR::RelaxParams named iterations. 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 iterations.

◆ MR_RelaxParams_Set_limitNearInitial()

MRC_API void MR_RelaxParams_Set_limitNearInitial ( MR_RelaxParams * _this,
bool value )

if true then maximal displacement of each point during denoising will be limited Modifies a member variable of class MR::RelaxParams named limitNearInitial. 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 limitNearInitial.

◆ MR_RelaxParams_Set_maxInitialDist()

MRC_API void MR_RelaxParams_Set_maxInitialDist ( MR_RelaxParams * _this,
float value )

maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false Modifies a member variable of class MR::RelaxParams named maxInitialDist. 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 maxInitialDist.

◆ MR_RelaxParams_Set_region()

MRC_API void MR_RelaxParams_Set_region ( MR_RelaxParams * _this,
const MR_VertBitSet * value )

region to relax Modifies a member variable of class MR::RelaxParams named region. 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 region. When this function is called, this object will drop object references it had previously in region.

◆ MR_RelaxParams_StaticDowncastTo_MR_MeshApproxRelaxParams()

MRC_API const MR_MeshApproxRelaxParams * MR_RelaxParams_StaticDowncastTo_MR_MeshApproxRelaxParams ( const MR_RelaxParams * object)

Downcasts an instance of MR::RelaxParams to a derived class MR::MeshApproxRelaxParams. 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_RelaxParams_StaticDowncastTo_MR_MeshEqualizeTriAreasParams()

MRC_API const MR_MeshEqualizeTriAreasParams * MR_RelaxParams_StaticDowncastTo_MR_MeshEqualizeTriAreasParams ( const MR_RelaxParams * object)

Downcasts an instance of MR::RelaxParams to a derived class MR::MeshEqualizeTriAreasParams. 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_RelaxParams_StaticDowncastTo_MR_MeshRelaxParams()

MRC_API const MR_MeshRelaxParams * MR_RelaxParams_StaticDowncastTo_MR_MeshRelaxParams ( const MR_RelaxParams * object)

Downcasts an instance of MR::RelaxParams to a derived class MR::MeshRelaxParams. 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_RelaxParams_StaticDowncastTo_MR_PointCloudApproxRelaxParams()

MRC_API const MR_PointCloudApproxRelaxParams * MR_RelaxParams_StaticDowncastTo_MR_PointCloudApproxRelaxParams ( const MR_RelaxParams * object)

Downcasts an instance of MR::RelaxParams to a derived class MR::PointCloudApproxRelaxParams. 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_RelaxParams_StaticDowncastTo_MR_PointCloudRelaxParams()

MRC_API const MR_PointCloudRelaxParams * MR_RelaxParams_StaticDowncastTo_MR_PointCloudRelaxParams ( const MR_RelaxParams * object)

Downcasts an instance of MR::RelaxParams to a derived class MR::PointCloudRelaxParams. 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.