#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.
| typedef struct MR_AffineXf3d MR_AffineXf3d |
| typedef struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string |
| typedef struct MR_expected_void_std_string MR_expected_void_std_string |
| typedef struct MR_MeshLoadSettings MR_MeshLoadSettings |
| typedef struct MR_MeshSave_CtmSaveOptions 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).
| typedef struct MR_MeshTexture MR_MeshTexture |
| typedef struct MR_PointCloud MR_PointCloud |
| typedef struct MR_PointsLoadSettings MR_PointsLoadSettings |
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).
| typedef struct MR_SaveSettings MR_SaveSettings |
| 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 struct MR_VertColors MR_VertColors |
| typedef struct MR_VertCoords2 MR_VertCoords2 |
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.