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

Go to the source code of this file.

Typedefs

typedef struct MR_AffineXf3f MR_AffineXf3f
 
typedef struct MR_MeshTexture MR_MeshTexture
 
typedef struct MR_VertColors MR_VertColors
 
typedef struct MR_VertCoords MR_VertCoords
 
typedef struct MR_VertCoords2 MR_VertCoords2
 
typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float
 
typedef struct MR_std_optional_MR_Edges MR_std_optional_MR_Edges
 
typedef struct MR_MeshLoadSettings MR_MeshLoadSettings
 

Functions

MRC_API MR_std_optional_MR_Edges *const * MR_MeshLoadSettings_Get_edges (const MR_MeshLoadSettings *_this)
 
MRC_API void MR_MeshLoadSettings_Set_edges (MR_MeshLoadSettings *_this, MR_std_optional_MR_Edges *value)
 
MRC_API MR_std_optional_MR_Edges ** MR_MeshLoadSettings_GetMutable_edges (MR_MeshLoadSettings *_this)
 
MRC_API MR_VertColors *const * MR_MeshLoadSettings_Get_colors (const MR_MeshLoadSettings *_this)
 
MRC_API void MR_MeshLoadSettings_Set_colors (MR_MeshLoadSettings *_this, MR_VertColors *value)
 
MRC_API MR_VertColors ** MR_MeshLoadSettings_GetMutable_colors (MR_MeshLoadSettings *_this)
 
MRC_API MR_VertCoords2 *const * MR_MeshLoadSettings_Get_uvCoords (const MR_MeshLoadSettings *_this)
 
MRC_API void MR_MeshLoadSettings_Set_uvCoords (MR_MeshLoadSettings *_this, MR_VertCoords2 *value)
 
MRC_API MR_VertCoords2 ** MR_MeshLoadSettings_GetMutable_uvCoords (MR_MeshLoadSettings *_this)
 
MRC_API MR_VertCoords *const * MR_MeshLoadSettings_Get_normals (const MR_MeshLoadSettings *_this)
 
MRC_API void MR_MeshLoadSettings_Set_normals (MR_MeshLoadSettings *_this, MR_VertCoords *value)
 
MRC_API MR_VertCoords ** MR_MeshLoadSettings_GetMutable_normals (MR_MeshLoadSettings *_this)
 
MRC_API MR_MeshTexture *const * MR_MeshLoadSettings_Get_texture (const MR_MeshLoadSettings *_this)
 
MRC_API void MR_MeshLoadSettings_Set_texture (MR_MeshLoadSettings *_this, MR_MeshTexture *value)
 
MRC_API MR_MeshTexture ** MR_MeshLoadSettings_GetMutable_texture (MR_MeshLoadSettings *_this)
 
MRC_API int32_t *const * MR_MeshLoadSettings_Get_skippedFaceCount (const MR_MeshLoadSettings *_this)
 
MRC_API void MR_MeshLoadSettings_Set_skippedFaceCount (MR_MeshLoadSettings *_this, int32_t *value)
 
MRC_API int32_t ** MR_MeshLoadSettings_GetMutable_skippedFaceCount (MR_MeshLoadSettings *_this)
 
MRC_API int32_t *const * MR_MeshLoadSettings_Get_duplicatedVertexCount (const MR_MeshLoadSettings *_this)
 
MRC_API void MR_MeshLoadSettings_Set_duplicatedVertexCount (MR_MeshLoadSettings *_this, int32_t *value)
 
MRC_API int32_t ** MR_MeshLoadSettings_GetMutable_duplicatedVertexCount (MR_MeshLoadSettings *_this)
 
MRC_API MR_AffineXf3f *const * MR_MeshLoadSettings_Get_xf (const MR_MeshLoadSettings *_this)
 
MRC_API void MR_MeshLoadSettings_Set_xf (MR_MeshLoadSettings *_this, MR_AffineXf3f *value)
 
MRC_API MR_AffineXf3f ** MR_MeshLoadSettings_GetMutable_xf (MR_MeshLoadSettings *_this)
 
MRC_API const MR_std_function_bool_from_floatMR_MeshLoadSettings_Get_callback (const MR_MeshLoadSettings *_this)
 
MRC_API void MR_MeshLoadSettings_Set_callback (MR_MeshLoadSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
 
MRC_API MR_std_function_bool_from_floatMR_MeshLoadSettings_GetMutable_callback (MR_MeshLoadSettings *_this)
 
MRC_API MR_MeshLoadSettingsMR_MeshLoadSettings_DefaultConstruct (void)
 
MRC_API MR_MeshLoadSettingsMR_MeshLoadSettings_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_MeshLoadSettingsMR_MeshLoadSettings_ConstructFrom (MR_std_optional_MR_Edges *edges, MR_VertColors *colors, MR_VertCoords2 *uvCoords, MR_VertCoords *normals, MR_MeshTexture *texture, int32_t *skippedFaceCount, int32_t *duplicatedVertexCount, MR_AffineXf3f *xf, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
 
MRC_API const MR_MeshLoadSettingsMR_MeshLoadSettings_OffsetPtr (const MR_MeshLoadSettings *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_MeshLoadSettingsMR_MeshLoadSettings_OffsetMutablePtr (MR_MeshLoadSettings *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_MeshLoadSettingsMR_MeshLoadSettings_ConstructFromAnother (MR_PassBy _other_pass_by, MR_MeshLoadSettings *_other)
 
MRC_API void MR_MeshLoadSettings_Destroy (const MR_MeshLoadSettings *_this)
 Destroys a heap-allocated instance of MR_MeshLoadSettings. Does nothing if the pointer is null.
 
MRC_API void MR_MeshLoadSettings_DestroyArray (const MR_MeshLoadSettings *_this)
 Destroys a heap-allocated array of MR_MeshLoadSettings. Does nothing if the pointer is null.
 
MRC_API MR_MeshLoadSettingsMR_MeshLoadSettings_AssignFromAnother (MR_MeshLoadSettings *_this, MR_PassBy _other_pass_by, MR_MeshLoadSettings *_other)
 

Typedef Documentation

◆ MR_AffineXf3f

typedef struct MR_AffineXf3f MR_AffineXf3f

◆ MR_MeshLoadSettings

setting for mesh loading from external format, and locations of optional output data Generated from class MR::MeshLoadSettings. optional load artifact: polyline edges Returns a pointer to a member variable of class MR::MeshLoadSettings named edges. 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_MeshTexture

◆ MR_std_function_bool_from_float

◆ MR_std_optional_MR_Edges

◆ MR_VertColors

typedef struct MR_VertColors MR_VertColors

◆ MR_VertCoords

typedef struct MR_VertCoords MR_VertCoords

◆ MR_VertCoords2

Function Documentation

◆ MR_MeshLoadSettings_AssignFromAnother()

MRC_API MR_MeshLoadSettings * MR_MeshLoadSettings_AssignFromAnother ( MR_MeshLoadSettings * _this,
MR_PassBy _other_pass_by,
MR_MeshLoadSettings * _other )

Generated from a method of class MR::MeshLoadSettings 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_MeshLoadSettings_ConstructFrom()

MRC_API MR_MeshLoadSettings * MR_MeshLoadSettings_ConstructFrom ( MR_std_optional_MR_Edges * edges,
MR_VertColors * colors,
MR_VertCoords2 * uvCoords,
MR_VertCoords * normals,
MR_MeshTexture * texture,
int32_t * skippedFaceCount,
int32_t * duplicatedVertexCount,
MR_AffineXf3f * xf,
MR_PassBy callback_pass_by,
MR_std_function_bool_from_float * callback )

Constructs MR::MeshLoadSettings elementwise. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshLoadSettings_Destroy() to free it when you're done using it.

◆ MR_MeshLoadSettings_ConstructFromAnother()

MRC_API MR_MeshLoadSettings * MR_MeshLoadSettings_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_MeshLoadSettings * _other )

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

◆ MR_MeshLoadSettings_DefaultConstruct()

MRC_API MR_MeshLoadSettings * MR_MeshLoadSettings_DefaultConstruct ( void )

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

◆ MR_MeshLoadSettings_DefaultConstructArray()

MRC_API MR_MeshLoadSettings * MR_MeshLoadSettings_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_MeshLoadSettings_DestroyArray(). Use MR_MeshLoadSettings_OffsetMutablePtr() and MR_MeshLoadSettings_OffsetPtr() to access the array elements.

◆ MR_MeshLoadSettings_Destroy()

MRC_API void MR_MeshLoadSettings_Destroy ( const MR_MeshLoadSettings * _this)

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

◆ MR_MeshLoadSettings_DestroyArray()

MRC_API void MR_MeshLoadSettings_DestroyArray ( const MR_MeshLoadSettings * _this)

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

◆ MR_MeshLoadSettings_Get_callback()

MRC_API const MR_std_function_bool_from_float * MR_MeshLoadSettings_Get_callback ( const MR_MeshLoadSettings * _this)

callback for set progress and stop process Modifies a member variable of class MR::MeshLoadSettings named callback. Parameter _this can not be null. It is a single object.

◆ MR_MeshLoadSettings_Get_colors()

MRC_API MR_VertColors *const * MR_MeshLoadSettings_Get_colors ( const MR_MeshLoadSettings * _this)

optional load artifact: per-vertex color map Modifies a member variable of class MR::MeshLoadSettings named colors. Parameter _this can not be null. It is a single object.

◆ MR_MeshLoadSettings_Get_duplicatedVertexCount()

MRC_API int32_t *const * MR_MeshLoadSettings_Get_duplicatedVertexCount ( const MR_MeshLoadSettings * _this)

optional output: counter of duplicated vertices (that created for resolve non-manifold geometry) Modifies a member variable of class MR::MeshLoadSettings named duplicatedVertexCount. Parameter _this can not be null. It is a single object.

◆ MR_MeshLoadSettings_Get_edges()

MRC_API MR_std_optional_MR_Edges *const * MR_MeshLoadSettings_Get_edges ( const MR_MeshLoadSettings * _this)

optional load artifact: polyline edges Modifies a member variable of class MR::MeshLoadSettings named edges. Parameter _this can not be null. It is a single object.

◆ MR_MeshLoadSettings_Get_normals()

MRC_API MR_VertCoords *const * MR_MeshLoadSettings_Get_normals ( const MR_MeshLoadSettings * _this)

optional load artifact: per-vertex normals Modifies a member variable of class MR::MeshLoadSettings named normals. Parameter _this can not be null. It is a single object.

◆ MR_MeshLoadSettings_Get_skippedFaceCount()

MRC_API int32_t *const * MR_MeshLoadSettings_Get_skippedFaceCount ( const MR_MeshLoadSettings * _this)

optional output: counter of skipped faces during mesh creation Modifies a member variable of class MR::MeshLoadSettings named skippedFaceCount. Parameter _this can not be null. It is a single object.

◆ MR_MeshLoadSettings_Get_texture()

MRC_API MR_MeshTexture *const * MR_MeshLoadSettings_Get_texture ( const MR_MeshLoadSettings * _this)

optional load artifact: texture image Modifies a member variable of class MR::MeshLoadSettings named texture. Parameter _this can not be null. It is a single object.

◆ MR_MeshLoadSettings_Get_uvCoords()

MRC_API MR_VertCoords2 *const * MR_MeshLoadSettings_Get_uvCoords ( const MR_MeshLoadSettings * _this)

optional load artifact: per-vertex uv-coordinates Modifies a member variable of class MR::MeshLoadSettings named uvCoords. Parameter _this can not be null. It is a single object.

◆ MR_MeshLoadSettings_Get_xf()

MRC_API MR_AffineXf3f *const * MR_MeshLoadSettings_Get_xf ( const MR_MeshLoadSettings * _this)

optional output: transform for the loaded mesh to improve precision of vertex coordinates Modifies a member variable of class MR::MeshLoadSettings named xf. Parameter _this can not be null. It is a single object.

◆ MR_MeshLoadSettings_GetMutable_callback()

MRC_API MR_std_function_bool_from_float * MR_MeshLoadSettings_GetMutable_callback ( MR_MeshLoadSettings * _this)

◆ MR_MeshLoadSettings_GetMutable_colors()

MRC_API MR_VertColors ** MR_MeshLoadSettings_GetMutable_colors ( MR_MeshLoadSettings * _this)

optional load artifact: per-vertex uv-coordinates Returns a pointer to a member variable of class MR::MeshLoadSettings named uvCoords. 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_MeshLoadSettings_GetMutable_duplicatedVertexCount()

MRC_API int32_t ** MR_MeshLoadSettings_GetMutable_duplicatedVertexCount ( MR_MeshLoadSettings * _this)

optional output: transform for the loaded mesh to improve precision of vertex coordinates Returns a pointer to a member variable of class MR::MeshLoadSettings named xf. 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_MeshLoadSettings_GetMutable_edges()

MRC_API MR_std_optional_MR_Edges ** MR_MeshLoadSettings_GetMutable_edges ( MR_MeshLoadSettings * _this)

optional load artifact: per-vertex color map Returns a pointer to a member variable of class MR::MeshLoadSettings named colors. 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_MeshLoadSettings_GetMutable_normals()

MRC_API MR_VertCoords ** MR_MeshLoadSettings_GetMutable_normals ( MR_MeshLoadSettings * _this)

optional load artifact: texture image Returns a pointer to a member variable of class MR::MeshLoadSettings named texture. 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_MeshLoadSettings_GetMutable_skippedFaceCount()

MRC_API int32_t ** MR_MeshLoadSettings_GetMutable_skippedFaceCount ( MR_MeshLoadSettings * _this)

optional output: counter of duplicated vertices (that created for resolve non-manifold geometry) Returns a pointer to a member variable of class MR::MeshLoadSettings named duplicatedVertexCount. 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_MeshLoadSettings_GetMutable_texture()

MRC_API MR_MeshTexture ** MR_MeshLoadSettings_GetMutable_texture ( MR_MeshLoadSettings * _this)

optional output: counter of skipped faces during mesh creation Returns a pointer to a member variable of class MR::MeshLoadSettings named skippedFaceCount. 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_MeshLoadSettings_GetMutable_uvCoords()

MRC_API MR_VertCoords2 ** MR_MeshLoadSettings_GetMutable_uvCoords ( MR_MeshLoadSettings * _this)

optional load artifact: per-vertex normals Returns a pointer to a member variable of class MR::MeshLoadSettings named normals. 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_MeshLoadSettings_GetMutable_xf()

MRC_API MR_AffineXf3f ** MR_MeshLoadSettings_GetMutable_xf ( MR_MeshLoadSettings * _this)

callback for set progress and stop process Returns a pointer to a member variable of class MR::MeshLoadSettings named callback. 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_MeshLoadSettings_OffsetMutablePtr()

MRC_API MR_MeshLoadSettings * MR_MeshLoadSettings_OffsetMutablePtr ( MR_MeshLoadSettings * 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_MeshLoadSettings_OffsetPtr()

MRC_API const MR_MeshLoadSettings * MR_MeshLoadSettings_OffsetPtr ( const MR_MeshLoadSettings * 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_MeshLoadSettings_Set_callback()

MRC_API void MR_MeshLoadSettings_Set_callback ( MR_MeshLoadSettings * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

callback for set progress and stop process Returns a mutable pointer to a member variable of class MR::MeshLoadSettings named callback. 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_MeshLoadSettings_Set_colors()

MRC_API void MR_MeshLoadSettings_Set_colors ( MR_MeshLoadSettings * _this,
MR_VertColors * value )

optional load artifact: per-vertex color map Returns a mutable pointer to a member variable of class MR::MeshLoadSettings named colors. 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_MeshLoadSettings_Set_duplicatedVertexCount()

MRC_API void MR_MeshLoadSettings_Set_duplicatedVertexCount ( MR_MeshLoadSettings * _this,
int32_t * value )

optional output: counter of duplicated vertices (that created for resolve non-manifold geometry) Returns a mutable pointer to a member variable of class MR::MeshLoadSettings named duplicatedVertexCount. 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_MeshLoadSettings_Set_edges()

MRC_API void MR_MeshLoadSettings_Set_edges ( MR_MeshLoadSettings * _this,
MR_std_optional_MR_Edges * value )

optional load artifact: polyline edges Returns a mutable pointer to a member variable of class MR::MeshLoadSettings named edges. 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_MeshLoadSettings_Set_normals()

MRC_API void MR_MeshLoadSettings_Set_normals ( MR_MeshLoadSettings * _this,
MR_VertCoords * value )

optional load artifact: per-vertex normals Returns a mutable pointer to a member variable of class MR::MeshLoadSettings named normals. 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_MeshLoadSettings_Set_skippedFaceCount()

MRC_API void MR_MeshLoadSettings_Set_skippedFaceCount ( MR_MeshLoadSettings * _this,
int32_t * value )

optional output: counter of skipped faces during mesh creation Returns a mutable pointer to a member variable of class MR::MeshLoadSettings named skippedFaceCount. 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_MeshLoadSettings_Set_texture()

MRC_API void MR_MeshLoadSettings_Set_texture ( MR_MeshLoadSettings * _this,
MR_MeshTexture * value )

optional load artifact: texture image Returns a mutable pointer to a member variable of class MR::MeshLoadSettings named texture. 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_MeshLoadSettings_Set_uvCoords()

MRC_API void MR_MeshLoadSettings_Set_uvCoords ( MR_MeshLoadSettings * _this,
MR_VertCoords2 * value )

optional load artifact: per-vertex uv-coordinates Returns a mutable pointer to a member variable of class MR::MeshLoadSettings named uvCoords. 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_MeshLoadSettings_Set_xf()

MRC_API void MR_MeshLoadSettings_Set_xf ( MR_MeshLoadSettings * _this,
MR_AffineXf3f * value )

optional output: transform for the loaded mesh to improve precision of vertex coordinates Returns a mutable pointer to a member variable of class MR::MeshLoadSettings named xf. 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.