MeshLib C Docs
Loading...
Searching...
No Matches
MRCtm.h File Reference
#include <MRCMesh/MRColor.h>
#include <MRCMesh/MRUnitInfo.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_AffineXf3d MR_AffineXf3d
 
typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_MeshLoadSettings MR_MeshLoadSettings
 
typedef struct MR_MeshTexture MR_MeshTexture
 
typedef struct MR_PointCloud MR_PointCloud
 
typedef struct MR_PointsLoadSettings MR_PointsLoadSettings
 
typedef struct MR_SaveSettings MR_SaveSettings
 
typedef struct MR_VertColors MR_VertColors
 
typedef struct MR_VertCoords2 MR_VertCoords2
 
typedef struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string
 
typedef struct MR_expected_MR_PointCloud_std_string MR_expected_MR_PointCloud_std_string
 
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_std_istream MR_std_istream
 
typedef struct MR_std_optional_MR_Color MR_std_optional_MR_Color
 
typedef struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit
 
typedef struct MR_std_ostream MR_std_ostream
 
typedef struct MR_std_string MR_std_string
 
typedef struct MR_std_vector_MR_Color MR_std_vector_MR_Color
 
typedef enum MR_MeshSave_CtmSaveOptions_MeshCompression MR_MeshSave_CtmSaveOptions_MeshCompression
 
typedef struct MR_MeshSave_CtmSaveOptions MR_MeshSave_CtmSaveOptions
 
typedef struct MR_PointsSave_CtmSavePointsOptions MR_PointsSave_CtmSavePointsOptions
 

Enumerations

enum  MR_MeshSave_CtmSaveOptions_MeshCompression { MR_MeshSave_CtmSaveOptions_MeshCompression_None = 0 , MR_MeshSave_CtmSaveOptions_MeshCompression_Lossless = 1 , MR_MeshSave_CtmSaveOptions_MeshCompression_Lossy = 2 }
 

Functions

MRC_API MR_expected_MR_Mesh_std_stringMR_MeshLoad_fromCtm_std_filesystem_path (const char *file, const char *file_end, const MR_MeshLoadSettings *settings)
 
MRC_API MR_expected_MR_Mesh_std_stringMR_MeshLoad_fromCtm_std_istream (MR_std_istream *in, const MR_MeshLoadSettings *settings)
 
MRC_API const MR_MeshSave_CtmSaveOptions_MeshCompressionMR_MeshSave_CtmSaveOptions_Get_meshCompression (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_meshCompression (MR_MeshSave_CtmSaveOptions *_this, MR_MeshSave_CtmSaveOptions_MeshCompression value)
 
MRC_API MR_MeshSave_CtmSaveOptions_MeshCompressionMR_MeshSave_CtmSaveOptions_GetMutable_meshCompression (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const float * MR_MeshSave_CtmSaveOptions_Get_vertexPrecision (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_vertexPrecision (MR_MeshSave_CtmSaveOptions *_this, float value)
 
MRC_API float * MR_MeshSave_CtmSaveOptions_GetMutable_vertexPrecision (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const int * MR_MeshSave_CtmSaveOptions_Get_compressionLevel (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_compressionLevel (MR_MeshSave_CtmSaveOptions *_this, int value)
 
MRC_API int * MR_MeshSave_CtmSaveOptions_GetMutable_compressionLevel (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const char *const * MR_MeshSave_CtmSaveOptions_Get_comment (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_comment (MR_MeshSave_CtmSaveOptions *_this, const char *value)
 
MRC_API const char ** MR_MeshSave_CtmSaveOptions_GetMutable_comment (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const bool * MR_MeshSave_CtmSaveOptions_Get_onlyValidPoints (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_onlyValidPoints (MR_MeshSave_CtmSaveOptions *_this, bool value)
 
MRC_API bool * MR_MeshSave_CtmSaveOptions_GetMutable_onlyValidPoints (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const bool * MR_MeshSave_CtmSaveOptions_Get_packPrimitives (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_packPrimitives (MR_MeshSave_CtmSaveOptions *_this, bool value)
 
MRC_API bool * MR_MeshSave_CtmSaveOptions_GetMutable_packPrimitives (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const MR_VertColors *const * MR_MeshSave_CtmSaveOptions_Get_colors (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_colors (MR_MeshSave_CtmSaveOptions *_this, const MR_VertColors *value)
 
MRC_API const MR_VertColors ** MR_MeshSave_CtmSaveOptions_GetMutable_colors (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const MR_std_vector_MR_Color *const * MR_MeshSave_CtmSaveOptions_Get_primitiveColors (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_primitiveColors (MR_MeshSave_CtmSaveOptions *_this, const MR_std_vector_MR_Color *value)
 
MRC_API const MR_std_vector_MR_Color ** MR_MeshSave_CtmSaveOptions_GetMutable_primitiveColors (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const MR_VertCoords2 *const * MR_MeshSave_CtmSaveOptions_Get_uvMap (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_uvMap (MR_MeshSave_CtmSaveOptions *_this, const MR_VertCoords2 *value)
 
MRC_API const MR_VertCoords2 ** MR_MeshSave_CtmSaveOptions_GetMutable_uvMap (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const bool * MR_MeshSave_CtmSaveOptions_Get_saveTriCornerUVCoords (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_saveTriCornerUVCoords (MR_MeshSave_CtmSaveOptions *_this, bool value)
 
MRC_API bool * MR_MeshSave_CtmSaveOptions_GetMutable_saveTriCornerUVCoords (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const MR_MeshTexture *const * MR_MeshSave_CtmSaveOptions_Get_texture (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_texture (MR_MeshSave_CtmSaveOptions *_this, const MR_MeshTexture *value)
 
MRC_API const MR_MeshTexture ** MR_MeshSave_CtmSaveOptions_GetMutable_texture (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const MR_std_stringMR_MeshSave_CtmSaveOptions_Get_materialName (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_materialName (MR_MeshSave_CtmSaveOptions *_this, const char *value, const char *value_end)
 
MRC_API MR_std_stringMR_MeshSave_CtmSaveOptions_GetMutable_materialName (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const MR_AffineXf3d *const * MR_MeshSave_CtmSaveOptions_Get_xf (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_xf (MR_MeshSave_CtmSaveOptions *_this, const MR_AffineXf3d *value)
 
MRC_API const MR_AffineXf3d ** MR_MeshSave_CtmSaveOptions_GetMutable_xf (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const MR_std_optional_MR_LengthUnitMR_MeshSave_CtmSaveOptions_Get_lengthUnit (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_lengthUnit (MR_MeshSave_CtmSaveOptions *_this, const MR_LengthUnit *value)
 
MRC_API MR_std_optional_MR_LengthUnitMR_MeshSave_CtmSaveOptions_GetMutable_lengthUnit (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const MR_std_optional_MR_ColorMR_MeshSave_CtmSaveOptions_Get_solidColor (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_solidColor (MR_MeshSave_CtmSaveOptions *_this, const MR_Color *value)
 
MRC_API MR_std_optional_MR_ColorMR_MeshSave_CtmSaveOptions_GetMutable_solidColor (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API const MR_std_function_bool_from_floatMR_MeshSave_CtmSaveOptions_Get_progress (const MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Set_progress (MR_MeshSave_CtmSaveOptions *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
 
MRC_API MR_std_function_bool_from_floatMR_MeshSave_CtmSaveOptions_GetMutable_progress (MR_MeshSave_CtmSaveOptions *_this)
 
MRC_API MR_MeshSave_CtmSaveOptionsMR_MeshSave_CtmSaveOptions_DefaultConstruct (void)
 
MRC_API MR_MeshSave_CtmSaveOptionsMR_MeshSave_CtmSaveOptions_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_MeshSave_CtmSaveOptionsMR_MeshSave_CtmSaveOptions_OffsetPtr (const MR_MeshSave_CtmSaveOptions *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_MeshSave_CtmSaveOptionsMR_MeshSave_CtmSaveOptions_OffsetMutablePtr (MR_MeshSave_CtmSaveOptions *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 const MR_SaveSettingsMR_MeshSave_CtmSaveOptions_UpcastTo_MR_SaveSettings (const MR_MeshSave_CtmSaveOptions *object)
 
MRC_API MR_SaveSettingsMR_MeshSave_CtmSaveOptions_MutableUpcastTo_MR_SaveSettings (MR_MeshSave_CtmSaveOptions *object)
 Upcasts an instance of MR::MeshSave::CtmSaveOptions to its base class MR::SaveSettings.
 
MRC_API MR_MeshSave_CtmSaveOptionsMR_MeshSave_CtmSaveOptions_ConstructFromAnother (MR_PassBy _other_pass_by, MR_MeshSave_CtmSaveOptions *_other)
 
MRC_API void MR_MeshSave_CtmSaveOptions_Destroy (const MR_MeshSave_CtmSaveOptions *_this)
 Destroys a heap-allocated instance of MR_MeshSave_CtmSaveOptions. Does nothing if the pointer is null.
 
MRC_API void MR_MeshSave_CtmSaveOptions_DestroyArray (const MR_MeshSave_CtmSaveOptions *_this)
 Destroys a heap-allocated array of MR_MeshSave_CtmSaveOptions. Does nothing if the pointer is null.
 
MRC_API MR_MeshSave_CtmSaveOptionsMR_MeshSave_CtmSaveOptions_AssignFromAnother (MR_MeshSave_CtmSaveOptions *_this, MR_PassBy _other_pass_by, MR_MeshSave_CtmSaveOptions *_other)
 
MRC_API MR_expected_void_std_stringMR_MeshSave_toCtm_const_std_filesystem_path_ref_MR_MeshSave_CtmSaveOptions (const MR_Mesh *mesh, const char *file, const char *file_end, const MR_MeshSave_CtmSaveOptions *options)
 
MRC_API MR_expected_void_std_stringMR_MeshSave_toCtm_std_ostream_ref_MR_MeshSave_CtmSaveOptions (const MR_Mesh *mesh, MR_std_ostream *out, const MR_MeshSave_CtmSaveOptions *options)
 
MRC_API MR_expected_void_std_stringMR_MeshSave_toCtm_const_std_filesystem_path_ref_MR_SaveSettings (const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
 
MRC_API MR_expected_void_std_stringMR_MeshSave_toCtm_std_ostream_ref_MR_SaveSettings (const MR_Mesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings)
 
MRC_API MR_expected_MR_PointCloud_std_stringMR_PointsLoad_fromCtm_std_filesystem_path (const char *file, const char *file_end, const MR_PointsLoadSettings *settings)
 
MRC_API MR_expected_MR_PointCloud_std_stringMR_PointsLoad_fromCtm_std_istream (MR_std_istream *in, const MR_PointsLoadSettings *settings)
 
MRC_API const int * MR_PointsSave_CtmSavePointsOptions_Get_compressionLevel (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_compressionLevel (MR_PointsSave_CtmSavePointsOptions *_this, int value)
 
MRC_API int * MR_PointsSave_CtmSavePointsOptions_GetMutable_compressionLevel (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const char *const * MR_PointsSave_CtmSavePointsOptions_Get_comment (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_comment (MR_PointsSave_CtmSavePointsOptions *_this, const char *value)
 
MRC_API const char ** MR_PointsSave_CtmSavePointsOptions_GetMutable_comment (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const bool * MR_PointsSave_CtmSavePointsOptions_Get_onlyValidPoints (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_onlyValidPoints (MR_PointsSave_CtmSavePointsOptions *_this, bool value)
 
MRC_API bool * MR_PointsSave_CtmSavePointsOptions_GetMutable_onlyValidPoints (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const bool * MR_PointsSave_CtmSavePointsOptions_Get_packPrimitives (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_packPrimitives (MR_PointsSave_CtmSavePointsOptions *_this, bool value)
 
MRC_API bool * MR_PointsSave_CtmSavePointsOptions_GetMutable_packPrimitives (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const MR_VertColors *const * MR_PointsSave_CtmSavePointsOptions_Get_colors (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_colors (MR_PointsSave_CtmSavePointsOptions *_this, const MR_VertColors *value)
 
MRC_API const MR_VertColors ** MR_PointsSave_CtmSavePointsOptions_GetMutable_colors (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const MR_std_vector_MR_Color *const * MR_PointsSave_CtmSavePointsOptions_Get_primitiveColors (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_primitiveColors (MR_PointsSave_CtmSavePointsOptions *_this, const MR_std_vector_MR_Color *value)
 
MRC_API const MR_std_vector_MR_Color ** MR_PointsSave_CtmSavePointsOptions_GetMutable_primitiveColors (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const MR_VertCoords2 *const * MR_PointsSave_CtmSavePointsOptions_Get_uvMap (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_uvMap (MR_PointsSave_CtmSavePointsOptions *_this, const MR_VertCoords2 *value)
 
MRC_API const MR_VertCoords2 ** MR_PointsSave_CtmSavePointsOptions_GetMutable_uvMap (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const bool * MR_PointsSave_CtmSavePointsOptions_Get_saveTriCornerUVCoords (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_saveTriCornerUVCoords (MR_PointsSave_CtmSavePointsOptions *_this, bool value)
 
MRC_API bool * MR_PointsSave_CtmSavePointsOptions_GetMutable_saveTriCornerUVCoords (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const MR_MeshTexture *const * MR_PointsSave_CtmSavePointsOptions_Get_texture (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_texture (MR_PointsSave_CtmSavePointsOptions *_this, const MR_MeshTexture *value)
 
MRC_API const MR_MeshTexture ** MR_PointsSave_CtmSavePointsOptions_GetMutable_texture (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const MR_std_stringMR_PointsSave_CtmSavePointsOptions_Get_materialName (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_materialName (MR_PointsSave_CtmSavePointsOptions *_this, const char *value, const char *value_end)
 
MRC_API MR_std_stringMR_PointsSave_CtmSavePointsOptions_GetMutable_materialName (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const MR_AffineXf3d *const * MR_PointsSave_CtmSavePointsOptions_Get_xf (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_xf (MR_PointsSave_CtmSavePointsOptions *_this, const MR_AffineXf3d *value)
 
MRC_API const MR_AffineXf3d ** MR_PointsSave_CtmSavePointsOptions_GetMutable_xf (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const MR_std_optional_MR_LengthUnitMR_PointsSave_CtmSavePointsOptions_Get_lengthUnit (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_lengthUnit (MR_PointsSave_CtmSavePointsOptions *_this, const MR_LengthUnit *value)
 
MRC_API MR_std_optional_MR_LengthUnitMR_PointsSave_CtmSavePointsOptions_GetMutable_lengthUnit (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const MR_std_optional_MR_ColorMR_PointsSave_CtmSavePointsOptions_Get_solidColor (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_solidColor (MR_PointsSave_CtmSavePointsOptions *_this, const MR_Color *value)
 
MRC_API MR_std_optional_MR_ColorMR_PointsSave_CtmSavePointsOptions_GetMutable_solidColor (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API const MR_std_function_bool_from_floatMR_PointsSave_CtmSavePointsOptions_Get_progress (const MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_progress (MR_PointsSave_CtmSavePointsOptions *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
 
MRC_API MR_std_function_bool_from_floatMR_PointsSave_CtmSavePointsOptions_GetMutable_progress (MR_PointsSave_CtmSavePointsOptions *_this)
 
MRC_API MR_PointsSave_CtmSavePointsOptionsMR_PointsSave_CtmSavePointsOptions_DefaultConstruct (void)
 
MRC_API MR_PointsSave_CtmSavePointsOptionsMR_PointsSave_CtmSavePointsOptions_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_PointsSave_CtmSavePointsOptionsMR_PointsSave_CtmSavePointsOptions_OffsetPtr (const MR_PointsSave_CtmSavePointsOptions *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_PointsSave_CtmSavePointsOptionsMR_PointsSave_CtmSavePointsOptions_OffsetMutablePtr (MR_PointsSave_CtmSavePointsOptions *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 const MR_SaveSettingsMR_PointsSave_CtmSavePointsOptions_UpcastTo_MR_SaveSettings (const MR_PointsSave_CtmSavePointsOptions *object)
 
MRC_API MR_SaveSettingsMR_PointsSave_CtmSavePointsOptions_MutableUpcastTo_MR_SaveSettings (MR_PointsSave_CtmSavePointsOptions *object)
 Upcasts an instance of MR::PointsSave::CtmSavePointsOptions to its base class MR::SaveSettings.
 
MRC_API MR_PointsSave_CtmSavePointsOptionsMR_PointsSave_CtmSavePointsOptions_ConstructFromAnother (MR_PassBy _other_pass_by, MR_PointsSave_CtmSavePointsOptions *_other)
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_Destroy (const MR_PointsSave_CtmSavePointsOptions *_this)
 Destroys a heap-allocated instance of MR_PointsSave_CtmSavePointsOptions. Does nothing if the pointer is null.
 
MRC_API void MR_PointsSave_CtmSavePointsOptions_DestroyArray (const MR_PointsSave_CtmSavePointsOptions *_this)
 Destroys a heap-allocated array of MR_PointsSave_CtmSavePointsOptions. Does nothing if the pointer is null.
 
MRC_API MR_PointsSave_CtmSavePointsOptionsMR_PointsSave_CtmSavePointsOptions_AssignFromAnother (MR_PointsSave_CtmSavePointsOptions *_this, MR_PassBy _other_pass_by, MR_PointsSave_CtmSavePointsOptions *_other)
 
MRC_API MR_expected_void_std_stringMR_PointsSave_toCtm_const_std_filesystem_path_ref_MR_PointsSave_CtmSavePointsOptions (const MR_PointCloud *points, const char *file, const char *file_end, const MR_PointsSave_CtmSavePointsOptions *options)
 
MRC_API MR_expected_void_std_stringMR_PointsSave_toCtm_std_ostream_ref_MR_PointsSave_CtmSavePointsOptions (const MR_PointCloud *points, MR_std_ostream *out, const MR_PointsSave_CtmSavePointsOptions *options)
 
MRC_API MR_expected_void_std_stringMR_PointsSave_toCtm_const_std_filesystem_path_ref_MR_SaveSettings (const MR_PointCloud *points, const char *file, const char *file_end, const MR_SaveSettings *settings)
 
MRC_API MR_expected_void_std_stringMR_PointsSave_toCtm_std_ostream_ref_MR_SaveSettings (const MR_PointCloud *points, MR_std_ostream *out, const MR_SaveSettings *settings)
 

Typedef Documentation

◆ MR_AffineXf3d

typedef struct MR_AffineXf3d MR_AffineXf3d

◆ MR_expected_MR_Mesh_std_string

◆ MR_expected_MR_PointCloud_std_string

◆ MR_expected_void_std_string

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

◆ MR_MeshLoadSettings

◆ MR_MeshSave_CtmSaveOptions

Generated from class MR::MeshSave::CtmSaveOptions. Base classes: Direct: (non-virtual) MR::SaveSettings 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_MeshSave_CtmSaveOptions_MeshCompression

◆ MR_MeshTexture

◆ MR_PointCloud

typedef struct MR_PointCloud MR_PointCloud

◆ MR_PointsLoadSettings

◆ MR_PointsSave_CtmSavePointsOptions

Generated from class MR::PointsSave::CtmSavePointsOptions. Base classes: Direct: (non-virtual) MR::SaveSettings 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_SaveSettings

◆ MR_std_function_bool_from_float

◆ MR_std_istream

◆ MR_std_optional_MR_Color

◆ MR_std_optional_MR_LengthUnit

◆ MR_std_ostream

◆ MR_std_string

typedef struct MR_std_string MR_std_string

◆ MR_std_vector_MR_Color

◆ MR_VertColors

typedef struct MR_VertColors MR_VertColors

◆ MR_VertCoords2

Enumeration Type Documentation

◆ MR_MeshSave_CtmSaveOptions_MeshCompression

Enumerator
MR_MeshSave_CtmSaveOptions_MeshCompression_None 

no compression at all, fast but not effective

compression without any loss in vertex coordinates

MR_MeshSave_CtmSaveOptions_MeshCompression_Lossless 

compression with loss in vertex coordinates

MR_MeshSave_CtmSaveOptions_MeshCompression_Lossy 

Function Documentation

◆ MR_MeshLoad_fromCtm_std_filesystem_path()

MRC_API MR_expected_MR_Mesh_std_string * MR_MeshLoad_fromCtm_std_filesystem_path ( const char * file,
const char * file_end,
const MR_MeshLoadSettings * settings )

loads from .ctm file Generated from function MR::MeshLoad::fromCtm. Parameter file is a UTF-8 encoded filesystem path. Parameter settings is a single object. Parameter settings 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_MR_Mesh_std_string_Destroy() to free it when you're done using it.

◆ MR_MeshLoad_fromCtm_std_istream()

MRC_API MR_expected_MR_Mesh_std_string * MR_MeshLoad_fromCtm_std_istream ( MR_std_istream * in,
const MR_MeshLoadSettings * settings )

Generated from function MR::MeshLoad::fromCtm. Parameter in can not be null. It is a single object. Parameter settings is a single object. Parameter settings 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_MR_Mesh_std_string_Destroy() to free it when you're done using it.

◆ MR_MeshSave_CtmSaveOptions_AssignFromAnother()

MRC_API MR_MeshSave_CtmSaveOptions * MR_MeshSave_CtmSaveOptions_AssignFromAnother ( MR_MeshSave_CtmSaveOptions * _this,
MR_PassBy _other_pass_by,
MR_MeshSave_CtmSaveOptions * _other )

Generated from method MR::MeshSave::CtmSaveOptions::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_MeshSave_CtmSaveOptions_ConstructFromAnother()

MRC_API MR_MeshSave_CtmSaveOptions * MR_MeshSave_CtmSaveOptions_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_MeshSave_CtmSaveOptions * _other )

Generated from constructor MR::MeshSave::CtmSaveOptions::CtmSaveOptions. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshSave_CtmSaveOptions_Destroy() to free it when you're done using it.

◆ MR_MeshSave_CtmSaveOptions_DefaultConstruct()

MRC_API MR_MeshSave_CtmSaveOptions * MR_MeshSave_CtmSaveOptions_DefaultConstruct ( void )

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

◆ MR_MeshSave_CtmSaveOptions_DefaultConstructArray()

MRC_API MR_MeshSave_CtmSaveOptions * MR_MeshSave_CtmSaveOptions_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_MeshSave_CtmSaveOptions_DestroyArray(). Use MR_MeshSave_CtmSaveOptions_OffsetMutablePtr() and MR_MeshSave_CtmSaveOptions_OffsetPtr() to access the array elements.

◆ MR_MeshSave_CtmSaveOptions_Destroy()

MRC_API void MR_MeshSave_CtmSaveOptions_Destroy ( const MR_MeshSave_CtmSaveOptions * _this)

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

◆ MR_MeshSave_CtmSaveOptions_DestroyArray()

MRC_API void MR_MeshSave_CtmSaveOptions_DestroyArray ( const MR_MeshSave_CtmSaveOptions * _this)

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

◆ MR_MeshSave_CtmSaveOptions_Get_colors()

MRC_API const MR_VertColors *const * MR_MeshSave_CtmSaveOptions_Get_colors ( const MR_MeshSave_CtmSaveOptions * _this)

optional per-vertex color to save with the geometry Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions 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_MeshSave_CtmSaveOptions_Get_comment()

MRC_API const char *const * MR_MeshSave_CtmSaveOptions_Get_comment ( const MR_MeshSave_CtmSaveOptions * _this)

comment saved in the file Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named comment. 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_MeshSave_CtmSaveOptions_Get_compressionLevel()

MRC_API const int * MR_MeshSave_CtmSaveOptions_Get_compressionLevel ( const MR_MeshSave_CtmSaveOptions * _this)

LZMA compression: 0 - minimal compression, but fast; 9 - maximal compression, but slow Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named compressionLevel. 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_MeshSave_CtmSaveOptions_Get_lengthUnit()

MRC_API const MR_std_optional_MR_LengthUnit * MR_MeshSave_CtmSaveOptions_Get_lengthUnit ( const MR_MeshSave_CtmSaveOptions * _this)

units of input coordinates and transformation, to be serialized if the format supports it Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named lengthUnit. 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_MeshSave_CtmSaveOptions_Get_materialName()

MRC_API const MR_std_string * MR_MeshSave_CtmSaveOptions_Get_materialName ( const MR_MeshSave_CtmSaveOptions * _this)

the name of file without extension to save texture in some formats (e.g. .OBJ, .PLY) Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named materialName. 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_MeshSave_CtmSaveOptions_Get_meshCompression()

MRC_API const MR_MeshSave_CtmSaveOptions_MeshCompression * MR_MeshSave_CtmSaveOptions_Get_meshCompression ( const MR_MeshSave_CtmSaveOptions * _this)

Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named meshCompression. 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_MeshSave_CtmSaveOptions_Get_onlyValidPoints()

MRC_API const bool * MR_MeshSave_CtmSaveOptions_Get_onlyValidPoints ( const MR_MeshSave_CtmSaveOptions * _this)

true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named onlyValidPoints. 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_MeshSave_CtmSaveOptions_Get_packPrimitives()

MRC_API const bool * MR_MeshSave_CtmSaveOptions_Get_packPrimitives ( const MR_MeshSave_CtmSaveOptions * _this)

whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named packPrimitives. 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_MeshSave_CtmSaveOptions_Get_primitiveColors()

MRC_API const MR_std_vector_MR_Color *const * MR_MeshSave_CtmSaveOptions_Get_primitiveColors ( const MR_MeshSave_CtmSaveOptions * _this)

per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named primitiveColors. 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_MeshSave_CtmSaveOptions_Get_progress()

MRC_API const MR_std_function_bool_from_float * MR_MeshSave_CtmSaveOptions_Get_progress ( const MR_MeshSave_CtmSaveOptions * _this)

to report save progress and cancel saving if user desires Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named progress. 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_MeshSave_CtmSaveOptions_Get_saveTriCornerUVCoords()

MRC_API const bool * MR_MeshSave_CtmSaveOptions_Get_saveTriCornerUVCoords ( const MR_MeshSave_CtmSaveOptions * _this)

if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named saveTriCornerUVCoords. 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_MeshSave_CtmSaveOptions_Get_solidColor()

MRC_API const MR_std_optional_MR_Color * MR_MeshSave_CtmSaveOptions_Get_solidColor ( const MR_MeshSave_CtmSaveOptions * _this)

the color of whole object Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named solidColor. 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_MeshSave_CtmSaveOptions_Get_texture()

MRC_API const MR_MeshTexture *const * MR_MeshSave_CtmSaveOptions_Get_texture ( const MR_MeshSave_CtmSaveOptions * _this)

optional texture to save with the geometry Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions 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_MeshSave_CtmSaveOptions_Get_uvMap()

MRC_API const MR_VertCoords2 *const * MR_MeshSave_CtmSaveOptions_Get_uvMap ( const MR_MeshSave_CtmSaveOptions * _this)

optional per-vertex uv coordinate to save with the geometry Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named uvMap. 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_MeshSave_CtmSaveOptions_Get_vertexPrecision()

MRC_API const float * MR_MeshSave_CtmSaveOptions_Get_vertexPrecision ( const MR_MeshSave_CtmSaveOptions * _this)

Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions named vertexPrecision. 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_MeshSave_CtmSaveOptions_Get_xf()

MRC_API const MR_AffineXf3d *const * MR_MeshSave_CtmSaveOptions_Get_xf ( const MR_MeshSave_CtmSaveOptions * _this)

this transformation can optionally be applied to all vertices (points) of saved object Returns a pointer to a member variable of class MR::MeshSave::CtmSaveOptions 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_MeshSave_CtmSaveOptions_GetMutable_colors()

MRC_API const MR_VertColors ** MR_MeshSave_CtmSaveOptions_GetMutable_colors ( MR_MeshSave_CtmSaveOptions * _this)

optional per-vertex color to save with the geometry Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions 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_MeshSave_CtmSaveOptions_GetMutable_comment()

MRC_API const char ** MR_MeshSave_CtmSaveOptions_GetMutable_comment ( MR_MeshSave_CtmSaveOptions * _this)

comment saved in the file Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named comment. 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_MeshSave_CtmSaveOptions_GetMutable_compressionLevel()

MRC_API int * MR_MeshSave_CtmSaveOptions_GetMutable_compressionLevel ( MR_MeshSave_CtmSaveOptions * _this)

LZMA compression: 0 - minimal compression, but fast; 9 - maximal compression, but slow Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named compressionLevel. 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_MeshSave_CtmSaveOptions_GetMutable_lengthUnit()

MRC_API MR_std_optional_MR_LengthUnit * MR_MeshSave_CtmSaveOptions_GetMutable_lengthUnit ( MR_MeshSave_CtmSaveOptions * _this)

units of input coordinates and transformation, to be serialized if the format supports it Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named lengthUnit. 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_MeshSave_CtmSaveOptions_GetMutable_materialName()

MRC_API MR_std_string * MR_MeshSave_CtmSaveOptions_GetMutable_materialName ( MR_MeshSave_CtmSaveOptions * _this)

the name of file without extension to save texture in some formats (e.g. .OBJ, .PLY) Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named materialName. 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_MeshSave_CtmSaveOptions_GetMutable_meshCompression()

MRC_API MR_MeshSave_CtmSaveOptions_MeshCompression * MR_MeshSave_CtmSaveOptions_GetMutable_meshCompression ( MR_MeshSave_CtmSaveOptions * _this)

Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named meshCompression. 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_MeshSave_CtmSaveOptions_GetMutable_onlyValidPoints()

MRC_API bool * MR_MeshSave_CtmSaveOptions_GetMutable_onlyValidPoints ( MR_MeshSave_CtmSaveOptions * _this)

true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named onlyValidPoints. 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_MeshSave_CtmSaveOptions_GetMutable_packPrimitives()

MRC_API bool * MR_MeshSave_CtmSaveOptions_GetMutable_packPrimitives ( MR_MeshSave_CtmSaveOptions * _this)

whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named packPrimitives. 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_MeshSave_CtmSaveOptions_GetMutable_primitiveColors()

MRC_API const MR_std_vector_MR_Color ** MR_MeshSave_CtmSaveOptions_GetMutable_primitiveColors ( MR_MeshSave_CtmSaveOptions * _this)

per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named primitiveColors. 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_MeshSave_CtmSaveOptions_GetMutable_progress()

MRC_API MR_std_function_bool_from_float * MR_MeshSave_CtmSaveOptions_GetMutable_progress ( MR_MeshSave_CtmSaveOptions * _this)

to report save progress and cancel saving if user desires Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named progress. 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_MeshSave_CtmSaveOptions_GetMutable_saveTriCornerUVCoords()

MRC_API bool * MR_MeshSave_CtmSaveOptions_GetMutable_saveTriCornerUVCoords ( MR_MeshSave_CtmSaveOptions * _this)

if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named saveTriCornerUVCoords. 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_MeshSave_CtmSaveOptions_GetMutable_solidColor()

MRC_API MR_std_optional_MR_Color * MR_MeshSave_CtmSaveOptions_GetMutable_solidColor ( MR_MeshSave_CtmSaveOptions * _this)

the color of whole object Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named solidColor. 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_MeshSave_CtmSaveOptions_GetMutable_texture()

MRC_API const MR_MeshTexture ** MR_MeshSave_CtmSaveOptions_GetMutable_texture ( MR_MeshSave_CtmSaveOptions * _this)

optional texture to save with the geometry Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions 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_MeshSave_CtmSaveOptions_GetMutable_uvMap()

MRC_API const MR_VertCoords2 ** MR_MeshSave_CtmSaveOptions_GetMutable_uvMap ( MR_MeshSave_CtmSaveOptions * _this)

optional per-vertex uv coordinate to save with the geometry Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named uvMap. 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_MeshSave_CtmSaveOptions_GetMutable_vertexPrecision()

MRC_API float * MR_MeshSave_CtmSaveOptions_GetMutable_vertexPrecision ( MR_MeshSave_CtmSaveOptions * _this)

Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions named vertexPrecision. 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_MeshSave_CtmSaveOptions_GetMutable_xf()

MRC_API const MR_AffineXf3d ** MR_MeshSave_CtmSaveOptions_GetMutable_xf ( MR_MeshSave_CtmSaveOptions * _this)

this transformation can optionally be applied to all vertices (points) of saved object Returns a mutable pointer to a member variable of class MR::MeshSave::CtmSaveOptions 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_MeshSave_CtmSaveOptions_MutableUpcastTo_MR_SaveSettings()

MRC_API MR_SaveSettings * MR_MeshSave_CtmSaveOptions_MutableUpcastTo_MR_SaveSettings ( MR_MeshSave_CtmSaveOptions * object)

Upcasts an instance of MR::MeshSave::CtmSaveOptions to its base class MR::SaveSettings.

◆ MR_MeshSave_CtmSaveOptions_OffsetMutablePtr()

MRC_API MR_MeshSave_CtmSaveOptions * MR_MeshSave_CtmSaveOptions_OffsetMutablePtr ( MR_MeshSave_CtmSaveOptions * 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_MeshSave_CtmSaveOptions_OffsetPtr()

MRC_API const MR_MeshSave_CtmSaveOptions * MR_MeshSave_CtmSaveOptions_OffsetPtr ( const MR_MeshSave_CtmSaveOptions * 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_MeshSave_CtmSaveOptions_Set_colors()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_colors ( MR_MeshSave_CtmSaveOptions * _this,
const MR_VertColors * value )

optional per-vertex color to save with the geometry Modifies a member variable of class MR::MeshSave::CtmSaveOptions named colors. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_Set_comment()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_comment ( MR_MeshSave_CtmSaveOptions * _this,
const char * value )

comment saved in the file Modifies a member variable of class MR::MeshSave::CtmSaveOptions named comment. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_Set_compressionLevel()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_compressionLevel ( MR_MeshSave_CtmSaveOptions * _this,
int value )

LZMA compression: 0 - minimal compression, but fast; 9 - maximal compression, but slow Modifies a member variable of class MR::MeshSave::CtmSaveOptions named compressionLevel. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_Set_lengthUnit()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_lengthUnit ( MR_MeshSave_CtmSaveOptions * _this,
const MR_LengthUnit * value )

units of input coordinates and transformation, to be serialized if the format supports it Modifies a member variable of class MR::MeshSave::CtmSaveOptions named lengthUnit. Parameter _this can not be null. It is a single object. Parameter value is optional. To keep it empty, pass a null pointer.

◆ MR_MeshSave_CtmSaveOptions_Set_materialName()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_materialName ( MR_MeshSave_CtmSaveOptions * _this,
const char * value,
const char * value_end )

the name of file without extension to save texture in some formats (e.g. .OBJ, .PLY) Modifies a member variable of class MR::MeshSave::CtmSaveOptions named materialName. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated.

◆ MR_MeshSave_CtmSaveOptions_Set_meshCompression()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_meshCompression ( MR_MeshSave_CtmSaveOptions * _this,
MR_MeshSave_CtmSaveOptions_MeshCompression value )

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

◆ MR_MeshSave_CtmSaveOptions_Set_onlyValidPoints()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_onlyValidPoints ( MR_MeshSave_CtmSaveOptions * _this,
bool value )

true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Modifies a member variable of class MR::MeshSave::CtmSaveOptions named onlyValidPoints. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_Set_packPrimitives()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_packPrimitives ( MR_MeshSave_CtmSaveOptions * _this,
bool value )

whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Modifies a member variable of class MR::MeshSave::CtmSaveOptions named packPrimitives. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_Set_primitiveColors()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_primitiveColors ( MR_MeshSave_CtmSaveOptions * _this,
const MR_std_vector_MR_Color * value )

per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Modifies a member variable of class MR::MeshSave::CtmSaveOptions named primitiveColors. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_Set_progress()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_progress ( MR_MeshSave_CtmSaveOptions * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

to report save progress and cancel saving if user desires Modifies a member variable of class MR::MeshSave::CtmSaveOptions named progress. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_Set_saveTriCornerUVCoords()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_saveTriCornerUVCoords ( MR_MeshSave_CtmSaveOptions * _this,
bool value )

if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Modifies a member variable of class MR::MeshSave::CtmSaveOptions named saveTriCornerUVCoords. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_Set_solidColor()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_solidColor ( MR_MeshSave_CtmSaveOptions * _this,
const MR_Color * value )

the color of whole object Modifies a member variable of class MR::MeshSave::CtmSaveOptions named solidColor. Parameter _this can not be null. It is a single object. Parameter value is optional. To keep it empty, pass a null pointer.

◆ MR_MeshSave_CtmSaveOptions_Set_texture()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_texture ( MR_MeshSave_CtmSaveOptions * _this,
const MR_MeshTexture * value )

optional texture to save with the geometry Modifies a member variable of class MR::MeshSave::CtmSaveOptions named texture. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_Set_uvMap()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_uvMap ( MR_MeshSave_CtmSaveOptions * _this,
const MR_VertCoords2 * value )

optional per-vertex uv coordinate to save with the geometry Modifies a member variable of class MR::MeshSave::CtmSaveOptions named uvMap. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_Set_vertexPrecision()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_vertexPrecision ( MR_MeshSave_CtmSaveOptions * _this,
float value )

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

◆ MR_MeshSave_CtmSaveOptions_Set_xf()

MRC_API void MR_MeshSave_CtmSaveOptions_Set_xf ( MR_MeshSave_CtmSaveOptions * _this,
const MR_AffineXf3d * value )

this transformation can optionally be applied to all vertices (points) of saved object Modifies a member variable of class MR::MeshSave::CtmSaveOptions named xf. Parameter _this can not be null. It is a single object.

◆ MR_MeshSave_CtmSaveOptions_UpcastTo_MR_SaveSettings()

MRC_API const MR_SaveSettings * MR_MeshSave_CtmSaveOptions_UpcastTo_MR_SaveSettings ( const MR_MeshSave_CtmSaveOptions * object)

Upcasts an instance of MR::MeshSave::CtmSaveOptions to its base class MR::SaveSettings. This version is acting on mutable pointers.

◆ MR_MeshSave_toCtm_const_std_filesystem_path_ref_MR_MeshSave_CtmSaveOptions()

MRC_API MR_expected_void_std_string * MR_MeshSave_toCtm_const_std_filesystem_path_ref_MR_MeshSave_CtmSaveOptions ( const MR_Mesh * mesh,
const char * file,
const char * file_end,
const MR_MeshSave_CtmSaveOptions * options )

saves in .ctm file Generated from function MR::MeshSave::toCtm. Parameter mesh can not be null. It is a single object. Parameter file is a UTF-8 encoded filesystem path. Parameter options can not be null. It is a single object. 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.

◆ MR_MeshSave_toCtm_const_std_filesystem_path_ref_MR_SaveSettings()

MRC_API MR_expected_void_std_string * MR_MeshSave_toCtm_const_std_filesystem_path_ref_MR_SaveSettings ( const MR_Mesh * mesh,
const char * file,
const char * file_end,
const MR_SaveSettings * settings )

Generated from function MR::MeshSave::toCtm. Parameter mesh can not be null. It is a single object. Parameter file is a UTF-8 encoded filesystem path. Parameter settings is a single object. Parameter settings 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.

◆ MR_MeshSave_toCtm_std_ostream_ref_MR_MeshSave_CtmSaveOptions()

MRC_API MR_expected_void_std_string * MR_MeshSave_toCtm_std_ostream_ref_MR_MeshSave_CtmSaveOptions ( const MR_Mesh * mesh,
MR_std_ostream * out,
const MR_MeshSave_CtmSaveOptions * options )

Generated from function MR::MeshSave::toCtm. Parameter mesh can not be null. It is a single object. Parameter out can not be null. It is a single object. Parameter options can not be null. It is a single object. 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.

◆ MR_MeshSave_toCtm_std_ostream_ref_MR_SaveSettings()

MRC_API MR_expected_void_std_string * MR_MeshSave_toCtm_std_ostream_ref_MR_SaveSettings ( const MR_Mesh * mesh,
MR_std_ostream * out,
const MR_SaveSettings * settings )

Generated from function MR::MeshSave::toCtm. Parameter mesh can not be null. It is a single object. Parameter out can not be null. It is a single object. Parameter settings is a single object. Parameter settings 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.

◆ MR_PointsLoad_fromCtm_std_filesystem_path()

MRC_API MR_expected_MR_PointCloud_std_string * MR_PointsLoad_fromCtm_std_filesystem_path ( const char * file,
const char * file_end,
const MR_PointsLoadSettings * settings )

loads from .ctm file Generated from function MR::PointsLoad::fromCtm. Parameter file is a UTF-8 encoded filesystem path. Parameter settings is a single object. Parameter settings 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_MR_PointCloud_std_string_Destroy() to free it when you're done using it.

◆ MR_PointsLoad_fromCtm_std_istream()

MRC_API MR_expected_MR_PointCloud_std_string * MR_PointsLoad_fromCtm_std_istream ( MR_std_istream * in,
const MR_PointsLoadSettings * settings )

Generated from function MR::PointsLoad::fromCtm. Parameter in can not be null. It is a single object. Parameter settings is a single object. Parameter settings 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_MR_PointCloud_std_string_Destroy() to free it when you're done using it.

◆ MR_PointsSave_CtmSavePointsOptions_AssignFromAnother()

MRC_API MR_PointsSave_CtmSavePointsOptions * MR_PointsSave_CtmSavePointsOptions_AssignFromAnother ( MR_PointsSave_CtmSavePointsOptions * _this,
MR_PassBy _other_pass_by,
MR_PointsSave_CtmSavePointsOptions * _other )

Generated from method MR::PointsSave::CtmSavePointsOptions::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_PointsSave_CtmSavePointsOptions_ConstructFromAnother()

MRC_API MR_PointsSave_CtmSavePointsOptions * MR_PointsSave_CtmSavePointsOptions_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_PointsSave_CtmSavePointsOptions * _other )

Generated from constructor MR::PointsSave::CtmSavePointsOptions::CtmSavePointsOptions. Never returns null. Returns an instance allocated on the heap! Must call MR_PointsSave_CtmSavePointsOptions_Destroy() to free it when you're done using it.

◆ MR_PointsSave_CtmSavePointsOptions_DefaultConstruct()

MRC_API MR_PointsSave_CtmSavePointsOptions * MR_PointsSave_CtmSavePointsOptions_DefaultConstruct ( void )

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

◆ MR_PointsSave_CtmSavePointsOptions_DefaultConstructArray()

MRC_API MR_PointsSave_CtmSavePointsOptions * MR_PointsSave_CtmSavePointsOptions_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_PointsSave_CtmSavePointsOptions_DestroyArray(). Use MR_PointsSave_CtmSavePointsOptions_OffsetMutablePtr() and MR_PointsSave_CtmSavePointsOptions_OffsetPtr() to access the array elements.

◆ MR_PointsSave_CtmSavePointsOptions_Destroy()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Destroy ( const MR_PointsSave_CtmSavePointsOptions * _this)

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

◆ MR_PointsSave_CtmSavePointsOptions_DestroyArray()

MRC_API void MR_PointsSave_CtmSavePointsOptions_DestroyArray ( const MR_PointsSave_CtmSavePointsOptions * _this)

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

◆ MR_PointsSave_CtmSavePointsOptions_Get_colors()

MRC_API const MR_VertColors *const * MR_PointsSave_CtmSavePointsOptions_Get_colors ( const MR_PointsSave_CtmSavePointsOptions * _this)

optional per-vertex color to save with the geometry Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions 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_PointsSave_CtmSavePointsOptions_Get_comment()

MRC_API const char *const * MR_PointsSave_CtmSavePointsOptions_Get_comment ( const MR_PointsSave_CtmSavePointsOptions * _this)

comment saved in the file Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named comment. 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_PointsSave_CtmSavePointsOptions_Get_compressionLevel()

MRC_API const int * MR_PointsSave_CtmSavePointsOptions_Get_compressionLevel ( const MR_PointsSave_CtmSavePointsOptions * _this)

0 - minimal compression, but fast; 9 - maximal compression, but slow Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named compressionLevel. 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_PointsSave_CtmSavePointsOptions_Get_lengthUnit()

MRC_API const MR_std_optional_MR_LengthUnit * MR_PointsSave_CtmSavePointsOptions_Get_lengthUnit ( const MR_PointsSave_CtmSavePointsOptions * _this)

units of input coordinates and transformation, to be serialized if the format supports it Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named lengthUnit. 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_PointsSave_CtmSavePointsOptions_Get_materialName()

MRC_API const MR_std_string * MR_PointsSave_CtmSavePointsOptions_Get_materialName ( const MR_PointsSave_CtmSavePointsOptions * _this)

the name of file without extension to save texture in some formats (e.g. .OBJ, .PLY) Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named materialName. 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_PointsSave_CtmSavePointsOptions_Get_onlyValidPoints()

MRC_API const bool * MR_PointsSave_CtmSavePointsOptions_Get_onlyValidPoints ( const MR_PointsSave_CtmSavePointsOptions * _this)

true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named onlyValidPoints. 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_PointsSave_CtmSavePointsOptions_Get_packPrimitives()

MRC_API const bool * MR_PointsSave_CtmSavePointsOptions_Get_packPrimitives ( const MR_PointsSave_CtmSavePointsOptions * _this)

whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named packPrimitives. 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_PointsSave_CtmSavePointsOptions_Get_primitiveColors()

MRC_API const MR_std_vector_MR_Color *const * MR_PointsSave_CtmSavePointsOptions_Get_primitiveColors ( const MR_PointsSave_CtmSavePointsOptions * _this)

per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named primitiveColors. 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_PointsSave_CtmSavePointsOptions_Get_progress()

MRC_API const MR_std_function_bool_from_float * MR_PointsSave_CtmSavePointsOptions_Get_progress ( const MR_PointsSave_CtmSavePointsOptions * _this)

to report save progress and cancel saving if user desires Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named progress. 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_PointsSave_CtmSavePointsOptions_Get_saveTriCornerUVCoords()

MRC_API const bool * MR_PointsSave_CtmSavePointsOptions_Get_saveTriCornerUVCoords ( const MR_PointsSave_CtmSavePointsOptions * _this)

if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named saveTriCornerUVCoords. 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_PointsSave_CtmSavePointsOptions_Get_solidColor()

MRC_API const MR_std_optional_MR_Color * MR_PointsSave_CtmSavePointsOptions_Get_solidColor ( const MR_PointsSave_CtmSavePointsOptions * _this)

the color of whole object Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named solidColor. 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_PointsSave_CtmSavePointsOptions_Get_texture()

MRC_API const MR_MeshTexture *const * MR_PointsSave_CtmSavePointsOptions_Get_texture ( const MR_PointsSave_CtmSavePointsOptions * _this)

optional texture to save with the geometry Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions 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_PointsSave_CtmSavePointsOptions_Get_uvMap()

MRC_API const MR_VertCoords2 *const * MR_PointsSave_CtmSavePointsOptions_Get_uvMap ( const MR_PointsSave_CtmSavePointsOptions * _this)

optional per-vertex uv coordinate to save with the geometry Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named uvMap. 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_PointsSave_CtmSavePointsOptions_Get_xf()

MRC_API const MR_AffineXf3d *const * MR_PointsSave_CtmSavePointsOptions_Get_xf ( const MR_PointsSave_CtmSavePointsOptions * _this)

this transformation can optionally be applied to all vertices (points) of saved object Returns a pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions 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_PointsSave_CtmSavePointsOptions_GetMutable_colors()

MRC_API const MR_VertColors ** MR_PointsSave_CtmSavePointsOptions_GetMutable_colors ( MR_PointsSave_CtmSavePointsOptions * _this)

optional per-vertex color to save with the geometry Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions 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_PointsSave_CtmSavePointsOptions_GetMutable_comment()

MRC_API const char ** MR_PointsSave_CtmSavePointsOptions_GetMutable_comment ( MR_PointsSave_CtmSavePointsOptions * _this)

comment saved in the file Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named comment. 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_PointsSave_CtmSavePointsOptions_GetMutable_compressionLevel()

MRC_API int * MR_PointsSave_CtmSavePointsOptions_GetMutable_compressionLevel ( MR_PointsSave_CtmSavePointsOptions * _this)

0 - minimal compression, but fast; 9 - maximal compression, but slow Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named compressionLevel. 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_PointsSave_CtmSavePointsOptions_GetMutable_lengthUnit()

MRC_API MR_std_optional_MR_LengthUnit * MR_PointsSave_CtmSavePointsOptions_GetMutable_lengthUnit ( MR_PointsSave_CtmSavePointsOptions * _this)

units of input coordinates and transformation, to be serialized if the format supports it Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named lengthUnit. 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_PointsSave_CtmSavePointsOptions_GetMutable_materialName()

MRC_API MR_std_string * MR_PointsSave_CtmSavePointsOptions_GetMutable_materialName ( MR_PointsSave_CtmSavePointsOptions * _this)

the name of file without extension to save texture in some formats (e.g. .OBJ, .PLY) Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named materialName. 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_PointsSave_CtmSavePointsOptions_GetMutable_onlyValidPoints()

MRC_API bool * MR_PointsSave_CtmSavePointsOptions_GetMutable_onlyValidPoints ( MR_PointsSave_CtmSavePointsOptions * _this)

true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named onlyValidPoints. 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_PointsSave_CtmSavePointsOptions_GetMutable_packPrimitives()

MRC_API bool * MR_PointsSave_CtmSavePointsOptions_GetMutable_packPrimitives ( MR_PointsSave_CtmSavePointsOptions * _this)

whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named packPrimitives. 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_PointsSave_CtmSavePointsOptions_GetMutable_primitiveColors()

MRC_API const MR_std_vector_MR_Color ** MR_PointsSave_CtmSavePointsOptions_GetMutable_primitiveColors ( MR_PointsSave_CtmSavePointsOptions * _this)

per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named primitiveColors. 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_PointsSave_CtmSavePointsOptions_GetMutable_progress()

MRC_API MR_std_function_bool_from_float * MR_PointsSave_CtmSavePointsOptions_GetMutable_progress ( MR_PointsSave_CtmSavePointsOptions * _this)

to report save progress and cancel saving if user desires Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named progress. 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_PointsSave_CtmSavePointsOptions_GetMutable_saveTriCornerUVCoords()

MRC_API bool * MR_PointsSave_CtmSavePointsOptions_GetMutable_saveTriCornerUVCoords ( MR_PointsSave_CtmSavePointsOptions * _this)

if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named saveTriCornerUVCoords. 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_PointsSave_CtmSavePointsOptions_GetMutable_solidColor()

MRC_API MR_std_optional_MR_Color * MR_PointsSave_CtmSavePointsOptions_GetMutable_solidColor ( MR_PointsSave_CtmSavePointsOptions * _this)

the color of whole object Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named solidColor. 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_PointsSave_CtmSavePointsOptions_GetMutable_texture()

MRC_API const MR_MeshTexture ** MR_PointsSave_CtmSavePointsOptions_GetMutable_texture ( MR_PointsSave_CtmSavePointsOptions * _this)

optional texture to save with the geometry Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions 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_PointsSave_CtmSavePointsOptions_GetMutable_uvMap()

MRC_API const MR_VertCoords2 ** MR_PointsSave_CtmSavePointsOptions_GetMutable_uvMap ( MR_PointsSave_CtmSavePointsOptions * _this)

optional per-vertex uv coordinate to save with the geometry Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions named uvMap. 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_PointsSave_CtmSavePointsOptions_GetMutable_xf()

MRC_API const MR_AffineXf3d ** MR_PointsSave_CtmSavePointsOptions_GetMutable_xf ( MR_PointsSave_CtmSavePointsOptions * _this)

this transformation can optionally be applied to all vertices (points) of saved object Returns a mutable pointer to a member variable of class MR::PointsSave::CtmSavePointsOptions 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_PointsSave_CtmSavePointsOptions_MutableUpcastTo_MR_SaveSettings()

MRC_API MR_SaveSettings * MR_PointsSave_CtmSavePointsOptions_MutableUpcastTo_MR_SaveSettings ( MR_PointsSave_CtmSavePointsOptions * object)

Upcasts an instance of MR::PointsSave::CtmSavePointsOptions to its base class MR::SaveSettings.

◆ MR_PointsSave_CtmSavePointsOptions_OffsetMutablePtr()

MRC_API MR_PointsSave_CtmSavePointsOptions * MR_PointsSave_CtmSavePointsOptions_OffsetMutablePtr ( MR_PointsSave_CtmSavePointsOptions * 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_PointsSave_CtmSavePointsOptions_OffsetPtr()

MRC_API const MR_PointsSave_CtmSavePointsOptions * MR_PointsSave_CtmSavePointsOptions_OffsetPtr ( const MR_PointsSave_CtmSavePointsOptions * 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_PointsSave_CtmSavePointsOptions_Set_colors()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_colors ( MR_PointsSave_CtmSavePointsOptions * _this,
const MR_VertColors * value )

optional per-vertex color to save with the geometry Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named colors. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_Set_comment()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_comment ( MR_PointsSave_CtmSavePointsOptions * _this,
const char * value )

comment saved in the file Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named comment. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_Set_compressionLevel()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_compressionLevel ( MR_PointsSave_CtmSavePointsOptions * _this,
int value )

0 - minimal compression, but fast; 9 - maximal compression, but slow Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named compressionLevel. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_Set_lengthUnit()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_lengthUnit ( MR_PointsSave_CtmSavePointsOptions * _this,
const MR_LengthUnit * value )

units of input coordinates and transformation, to be serialized if the format supports it Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named lengthUnit. Parameter _this can not be null. It is a single object. Parameter value is optional. To keep it empty, pass a null pointer.

◆ MR_PointsSave_CtmSavePointsOptions_Set_materialName()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_materialName ( MR_PointsSave_CtmSavePointsOptions * _this,
const char * value,
const char * value_end )

the name of file without extension to save texture in some formats (e.g. .OBJ, .PLY) Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named materialName. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated.

◆ MR_PointsSave_CtmSavePointsOptions_Set_onlyValidPoints()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_onlyValidPoints ( MR_PointsSave_CtmSavePointsOptions * _this,
bool value )

true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named onlyValidPoints. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_Set_packPrimitives()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_packPrimitives ( MR_PointsSave_CtmSavePointsOptions * _this,
bool value )

whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named packPrimitives. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_Set_primitiveColors()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_primitiveColors ( MR_PointsSave_CtmSavePointsOptions * _this,
const MR_std_vector_MR_Color * value )

per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named primitiveColors. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_Set_progress()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_progress ( MR_PointsSave_CtmSavePointsOptions * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

to report save progress and cancel saving if user desires Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named progress. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_Set_saveTriCornerUVCoords()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_saveTriCornerUVCoords ( MR_PointsSave_CtmSavePointsOptions * _this,
bool value )

if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named saveTriCornerUVCoords. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_Set_solidColor()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_solidColor ( MR_PointsSave_CtmSavePointsOptions * _this,
const MR_Color * value )

the color of whole object Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named solidColor. Parameter _this can not be null. It is a single object. Parameter value is optional. To keep it empty, pass a null pointer.

◆ MR_PointsSave_CtmSavePointsOptions_Set_texture()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_texture ( MR_PointsSave_CtmSavePointsOptions * _this,
const MR_MeshTexture * value )

optional texture to save with the geometry Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named texture. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_Set_uvMap()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_uvMap ( MR_PointsSave_CtmSavePointsOptions * _this,
const MR_VertCoords2 * value )

optional per-vertex uv coordinate to save with the geometry Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named uvMap. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_Set_xf()

MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_xf ( MR_PointsSave_CtmSavePointsOptions * _this,
const MR_AffineXf3d * value )

this transformation can optionally be applied to all vertices (points) of saved object Modifies a member variable of class MR::PointsSave::CtmSavePointsOptions named xf. Parameter _this can not be null. It is a single object.

◆ MR_PointsSave_CtmSavePointsOptions_UpcastTo_MR_SaveSettings()

MRC_API const MR_SaveSettings * MR_PointsSave_CtmSavePointsOptions_UpcastTo_MR_SaveSettings ( const MR_PointsSave_CtmSavePointsOptions * object)

Upcasts an instance of MR::PointsSave::CtmSavePointsOptions to its base class MR::SaveSettings. This version is acting on mutable pointers.

◆ MR_PointsSave_toCtm_const_std_filesystem_path_ref_MR_PointsSave_CtmSavePointsOptions()

MRC_API MR_expected_void_std_string * MR_PointsSave_toCtm_const_std_filesystem_path_ref_MR_PointsSave_CtmSavePointsOptions ( const MR_PointCloud * points,
const char * file,
const char * file_end,
const MR_PointsSave_CtmSavePointsOptions * options )

saves in .ctm file Generated from function MR::PointsSave::toCtm. Parameter points can not be null. It is a single object. Parameter file is a UTF-8 encoded filesystem path. Parameter options can not be null. It is a single object. 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.

◆ MR_PointsSave_toCtm_const_std_filesystem_path_ref_MR_SaveSettings()

MRC_API MR_expected_void_std_string * MR_PointsSave_toCtm_const_std_filesystem_path_ref_MR_SaveSettings ( const MR_PointCloud * points,
const char * file,
const char * file_end,
const MR_SaveSettings * settings )

Generated from function MR::PointsSave::toCtm. Parameter points can not be null. It is a single object. Parameter file is a UTF-8 encoded filesystem path. Parameter settings is a single object. Parameter settings 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.

◆ MR_PointsSave_toCtm_std_ostream_ref_MR_PointsSave_CtmSavePointsOptions()

MRC_API MR_expected_void_std_string * MR_PointsSave_toCtm_std_ostream_ref_MR_PointsSave_CtmSavePointsOptions ( const MR_PointCloud * points,
MR_std_ostream * out,
const MR_PointsSave_CtmSavePointsOptions * options )

Generated from function MR::PointsSave::toCtm. Parameter points can not be null. It is a single object. Parameter out can not be null. It is a single object. Parameter options can not be null. It is a single object. 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.

◆ MR_PointsSave_toCtm_std_ostream_ref_MR_SaveSettings()

MRC_API MR_expected_void_std_string * MR_PointsSave_toCtm_std_ostream_ref_MR_SaveSettings ( const MR_PointCloud * points,
MR_std_ostream * out,
const MR_SaveSettings * settings )

Generated from function MR::PointsSave::toCtm. Parameter points can not be null. It is a single object. Parameter out can not be null. It is a single object. Parameter settings is a single object. Parameter settings 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.