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

Go to the source code of this file.

Typedefs

typedef struct MR_FaceBitSet MR_FaceBitSet
 
typedef struct MR_MeshProjectionTransforms MR_MeshProjectionTransforms
 
typedef struct MR_ObjectMeshData MR_ObjectMeshData
 
typedef struct MR_expected_void_std_string MR_expected_void_std_string
 
typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float
 
typedef struct MR_ProjectAttributeParams MR_ProjectAttributeParams
 

Functions

MRC_API const MR_MeshProjectionTransformsMR_ProjectAttributeParams_Get_xfs (const MR_ProjectAttributeParams *_this)
 
MRC_API void MR_ProjectAttributeParams_Set_xfs (MR_ProjectAttributeParams *_this, const MR_MeshProjectionTransforms *value)
 
MRC_API MR_MeshProjectionTransformsMR_ProjectAttributeParams_GetMutable_xfs (MR_ProjectAttributeParams *_this)
 
MRC_API const MR_std_function_bool_from_floatMR_ProjectAttributeParams_Get_progressCb (const MR_ProjectAttributeParams *_this)
 
MRC_API void MR_ProjectAttributeParams_Set_progressCb (MR_ProjectAttributeParams *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
 
MRC_API MR_std_function_bool_from_floatMR_ProjectAttributeParams_GetMutable_progressCb (MR_ProjectAttributeParams *_this)
 
MRC_API MR_ProjectAttributeParamsMR_ProjectAttributeParams_DefaultConstruct (void)
 
MRC_API MR_ProjectAttributeParamsMR_ProjectAttributeParams_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_ProjectAttributeParamsMR_ProjectAttributeParams_ConstructFrom (const MR_MeshProjectionTransforms *xfs, MR_PassBy progressCb_pass_by, MR_std_function_bool_from_float *progressCb)
 
MRC_API const MR_ProjectAttributeParamsMR_ProjectAttributeParams_OffsetPtr (const MR_ProjectAttributeParams *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_ProjectAttributeParamsMR_ProjectAttributeParams_OffsetMutablePtr (MR_ProjectAttributeParams *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_ProjectAttributeParamsMR_ProjectAttributeParams_ConstructFromAnother (MR_PassBy _other_pass_by, MR_ProjectAttributeParams *_other)
 
MRC_API void MR_ProjectAttributeParams_Destroy (const MR_ProjectAttributeParams *_this)
 Destroys a heap-allocated instance of MR_ProjectAttributeParams. Does nothing if the pointer is null.
 
MRC_API void MR_ProjectAttributeParams_DestroyArray (const MR_ProjectAttributeParams *_this)
 Destroys a heap-allocated array of MR_ProjectAttributeParams. Does nothing if the pointer is null.
 
MRC_API MR_ProjectAttributeParamsMR_ProjectAttributeParams_AssignFromAnother (MR_ProjectAttributeParams *_this, MR_PassBy _other_pass_by, MR_ProjectAttributeParams *_other)
 
MRC_API MR_expected_void_std_stringMR_projectObjectMeshData (const MR_ObjectMeshData *oldMeshData, MR_ObjectMeshData *newMeshData, const MR_FaceBitSet *region, const MR_ProjectAttributeParams *params)
 finds attributes of new mesh by projecting faces/vertices on old mesh
 

Typedef Documentation

◆ MR_expected_void_std_string

◆ MR_FaceBitSet

typedef struct MR_FaceBitSet MR_FaceBitSet

◆ MR_MeshProjectionTransforms

◆ MR_ObjectMeshData

◆ MR_ProjectAttributeParams

this structure contains transformation for projection from one mesh to another and progress callback Generated from class MR::ProjectAttributeParams.

◆ MR_std_function_bool_from_float

Function Documentation

◆ MR_ProjectAttributeParams_AssignFromAnother()

MRC_API MR_ProjectAttributeParams * MR_ProjectAttributeParams_AssignFromAnother ( MR_ProjectAttributeParams * _this,
MR_PassBy _other_pass_by,
MR_ProjectAttributeParams * _other )

Generated from a method of class MR::ProjectAttributeParams named operator=. 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_ProjectAttributeParams_ConstructFrom()

MRC_API MR_ProjectAttributeParams * MR_ProjectAttributeParams_ConstructFrom ( const MR_MeshProjectionTransforms * xfs,
MR_PassBy progressCb_pass_by,
MR_std_function_bool_from_float * progressCb )

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

◆ MR_ProjectAttributeParams_ConstructFromAnother()

MRC_API MR_ProjectAttributeParams * MR_ProjectAttributeParams_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_ProjectAttributeParams * _other )

Generated from a constructor of class MR::ProjectAttributeParams. Never returns null. Returns an instance allocated on the heap! Must call MR_ProjectAttributeParams_Destroy() to free it when you're done using it.

◆ MR_ProjectAttributeParams_DefaultConstruct()

MRC_API MR_ProjectAttributeParams * MR_ProjectAttributeParams_DefaultConstruct ( void )

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

◆ MR_ProjectAttributeParams_DefaultConstructArray()

MRC_API MR_ProjectAttributeParams * MR_ProjectAttributeParams_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_ProjectAttributeParams_DestroyArray(). Use MR_ProjectAttributeParams_OffsetMutablePtr() and MR_ProjectAttributeParams_OffsetPtr() to access the array elements.

◆ MR_ProjectAttributeParams_Destroy()

MRC_API void MR_ProjectAttributeParams_Destroy ( const MR_ProjectAttributeParams * _this)

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

◆ MR_ProjectAttributeParams_DestroyArray()

MRC_API void MR_ProjectAttributeParams_DestroyArray ( const MR_ProjectAttributeParams * _this)

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

◆ MR_ProjectAttributeParams_Get_progressCb()

MRC_API const MR_std_function_bool_from_float * MR_ProjectAttributeParams_Get_progressCb ( const MR_ProjectAttributeParams * _this)

Returns a pointer to a member variable of class MR::ProjectAttributeParams named progressCb. 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_ProjectAttributeParams_Get_xfs()

MRC_API const MR_MeshProjectionTransforms * MR_ProjectAttributeParams_Get_xfs ( const MR_ProjectAttributeParams * _this)

Returns a pointer to a member variable of class MR::ProjectAttributeParams named xfs. 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_ProjectAttributeParams_GetMutable_progressCb()

MRC_API MR_std_function_bool_from_float * MR_ProjectAttributeParams_GetMutable_progressCb ( MR_ProjectAttributeParams * _this)

Returns a mutable pointer to a member variable of class MR::ProjectAttributeParams named progressCb. 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_ProjectAttributeParams_GetMutable_xfs()

MRC_API MR_MeshProjectionTransforms * MR_ProjectAttributeParams_GetMutable_xfs ( MR_ProjectAttributeParams * _this)

Returns a mutable pointer to a member variable of class MR::ProjectAttributeParams named xfs. 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_ProjectAttributeParams_OffsetMutablePtr()

MRC_API MR_ProjectAttributeParams * MR_ProjectAttributeParams_OffsetMutablePtr ( MR_ProjectAttributeParams * 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_ProjectAttributeParams_OffsetPtr()

MRC_API const MR_ProjectAttributeParams * MR_ProjectAttributeParams_OffsetPtr ( const MR_ProjectAttributeParams * 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_ProjectAttributeParams_Set_progressCb()

MRC_API void MR_ProjectAttributeParams_Set_progressCb ( MR_ProjectAttributeParams * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

Modifies a member variable of class MR::ProjectAttributeParams named progressCb. Parameter _this can not be null. It is a single object.

◆ MR_ProjectAttributeParams_Set_xfs()

MRC_API void MR_ProjectAttributeParams_Set_xfs ( MR_ProjectAttributeParams * _this,
const MR_MeshProjectionTransforms * value )

Modifies a member variable of class MR::ProjectAttributeParams named xfs. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object.

◆ MR_projectObjectMeshData()

MRC_API MR_expected_void_std_string * MR_projectObjectMeshData ( const MR_ObjectMeshData * oldMeshData,
MR_ObjectMeshData * newMeshData,
const MR_FaceBitSet * region,
const MR_ProjectAttributeParams * params )

finds attributes of new mesh by projecting faces/vertices on old mesh

Note
for now clears edges attributes
Parameters
oldMeshDataold mesh along with input attributes
newMeshDatanew mesh along with outpuyt attributes
regionoptional input region for projecting (usefull if newMesh is changed part of old mesh)
paramsparameters of prohecting

Generated from function MR::projectObjectMeshData. Parameter oldMeshData can not be null. It is a single object. Parameter newMeshData can not be null. It is a single object. Parameter region defaults to a null pointer in C++. Parameter params is a single object. Parameter params has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.