#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_DracoSaveOptions | MR_DracoSaveOptions |
| typedef struct MR_DracoSaveOptions MR_DracoSaveOptions |
options for saving in Google Draco format Generated from class MR::DracoSaveOptions. 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).
| MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_AssignFromAnother | ( | MR_DracoSaveOptions * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_DracoSaveOptions * | _other ) |
Generated from method MR::DracoSaveOptions::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_DracoSaveOptions * | _other ) |
Generated from constructor MR::DracoSaveOptions::DracoSaveOptions. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_DracoSaveOptions_Destroy() to free it when you're done using it.
| MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_DracoSaveOptions_Destroy() to free it when you're done using it.
| MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_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_DracoSaveOptions_DestroyArray(). Use MR_DracoSaveOptions_OffsetMutablePtr() and MR_DracoSaveOptions_OffsetPtr() to access the array elements.
| MRC_API void MR_DracoSaveOptions_Destroy | ( | const MR_DracoSaveOptions * | _this | ) |
Destroys a heap-allocated instance of MR_DracoSaveOptions. Does nothing if the pointer is null.
| MRC_API void MR_DracoSaveOptions_DestroyArray | ( | const MR_DracoSaveOptions * | _this | ) |
Destroys a heap-allocated array of MR_DracoSaveOptions. Does nothing if the pointer is null.
| MRC_API const MR_VertColors *const * MR_DracoSaveOptions_Get_colors | ( | const MR_DracoSaveOptions * | _this | ) |
optional per-vertex color to save with the geometry Returns a pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const int * MR_DracoSaveOptions_Get_compressionLevel | ( | const MR_DracoSaveOptions * | _this | ) |
0 - fastest encoding and decoding but the worst compression, 10 - the best compression Returns a pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_optional_MR_LengthUnit * MR_DracoSaveOptions_Get_lengthUnit | ( | const MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_string * MR_DracoSaveOptions_Get_materialName | ( | const MR_DracoSaveOptions * | _this | ) |
the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY) Returns a pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const bool * MR_DracoSaveOptions_Get_onlyValidPoints | ( | const MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const bool * MR_DracoSaveOptions_Get_packPrimitives | ( | const MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const int * MR_DracoSaveOptions_Get_positionQuantizationBits | ( | const MR_DracoSaveOptions * | _this | ) |
the number of bits to quantize vertex coordinates to (in the range [1, 30]); 0 - no quantization, the coordinates are saved losslessly Returns a pointer to a member variable of class MR::DracoSaveOptions named positionQuantizationBits. 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_FaceColors *const * MR_DracoSaveOptions_Get_primitiveColors | ( | const MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_function_bool_from_float * MR_DracoSaveOptions_Get_progress | ( | const MR_DracoSaveOptions * | _this | ) |
to report save progress and cancel saving if user desires Returns a pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const bool * MR_DracoSaveOptions_Get_saveTriCornerUVCoords | ( | const MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_optional_MR_Color * MR_DracoSaveOptions_Get_solidColor | ( | const MR_DracoSaveOptions * | _this | ) |
the color of whole object, saved only in the formats having object color: .3mf (if neither per-vertex nor per-triangle colors are given), .obj (Kd in .mtl file), binary .stl (COLOR= in the header) Returns a pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const bool * MR_DracoSaveOptions_Get_telemetrySignal | ( | const MR_DracoSaveOptions * | _this | ) |
permit telemetry signal about saving Returns a pointer to a member variable of class MR::DracoSaveOptions named telemetrySignal. 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_MeshTexture *const * MR_DracoSaveOptions_Get_texture | ( | const MR_DracoSaveOptions * | _this | ) |
optional texture to save with the geometry Returns a pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_VertCoords2 *const * MR_DracoSaveOptions_Get_uvMap | ( | const MR_DracoSaveOptions * | _this | ) |
optional per-vertex uv coordinate to save with the geometry Returns a pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_AffineXf3d *const * MR_DracoSaveOptions_Get_xf | ( | const MR_DracoSaveOptions * | _this | ) |
this transformation can optionally be applied to all vertices (points) of saved object Returns a pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_VertColors ** MR_DracoSaveOptions_GetMutable_colors | ( | MR_DracoSaveOptions * | _this | ) |
optional per-vertex color to save with the geometry Returns a mutable pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API int * MR_DracoSaveOptions_GetMutable_compressionLevel | ( | MR_DracoSaveOptions * | _this | ) |
0 - fastest encoding and decoding but the worst compression, 10 - the best compression Returns a mutable pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API MR_std_optional_MR_LengthUnit * MR_DracoSaveOptions_GetMutable_lengthUnit | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API MR_std_string * MR_DracoSaveOptions_GetMutable_materialName | ( | MR_DracoSaveOptions * | _this | ) |
the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY) Returns a mutable pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API bool * MR_DracoSaveOptions_GetMutable_onlyValidPoints | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API bool * MR_DracoSaveOptions_GetMutable_packPrimitives | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API int * MR_DracoSaveOptions_GetMutable_positionQuantizationBits | ( | MR_DracoSaveOptions * | _this | ) |
the number of bits to quantize vertex coordinates to (in the range [1, 30]); 0 - no quantization, the coordinates are saved losslessly Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named positionQuantizationBits. 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_FaceColors ** MR_DracoSaveOptions_GetMutable_primitiveColors | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API MR_std_function_bool_from_float * MR_DracoSaveOptions_GetMutable_progress | ( | MR_DracoSaveOptions * | _this | ) |
to report save progress and cancel saving if user desires Returns a mutable pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API bool * MR_DracoSaveOptions_GetMutable_saveTriCornerUVCoords | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API MR_std_optional_MR_Color * MR_DracoSaveOptions_GetMutable_solidColor | ( | MR_DracoSaveOptions * | _this | ) |
the color of whole object, saved only in the formats having object color: .3mf (if neither per-vertex nor per-triangle colors are given), .obj (Kd in .mtl file), binary .stl (COLOR= in the header) Returns a mutable pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API bool * MR_DracoSaveOptions_GetMutable_telemetrySignal | ( | MR_DracoSaveOptions * | _this | ) |
permit telemetry signal about saving Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named telemetrySignal. 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_MeshTexture ** MR_DracoSaveOptions_GetMutable_texture | ( | MR_DracoSaveOptions * | _this | ) |
optional texture to save with the geometry Returns a mutable pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_VertCoords2 ** MR_DracoSaveOptions_GetMutable_uvMap | ( | MR_DracoSaveOptions * | _this | ) |
optional per-vertex uv coordinate to save with the geometry Returns a mutable pointer to a member variable of class MR::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_AffineXf3d ** MR_DracoSaveOptions_GetMutable_xf | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to this object might be preserved as the return value.
| MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_MutableStaticDowncastFrom_MR_SaveSettings | ( | MR_SaveSettings * | object | ) |
Downcasts an instance of MR::SaveSettings to a derived class MR::DracoSaveOptions. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. The reference to the parameter object might be preserved in the return value.
| MRC_API MR_SaveSettings * MR_DracoSaveOptions_MutableUpcastTo_MR_SaveSettings | ( | MR_DracoSaveOptions * | object | ) |
Upcasts an instance of MR::DracoSaveOptions to its base class MR::SaveSettings. The reference to the parameter object might be preserved in the return value.
| MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_OffsetMutablePtr | ( | MR_DracoSaveOptions * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_DracoSaveOptions * MR_DracoSaveOptions_OffsetPtr | ( | const MR_DracoSaveOptions * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_DracoSaveOptions_Set_colors | ( | MR_DracoSaveOptions * | _this, |
| const MR_VertColors * | value ) |
optional per-vertex color to save with the geometry Modifies a member variable of class MR::DracoSaveOptions named colors. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element colors. When this function is called, this object will drop object references it held previously in colors.
| MRC_API void MR_DracoSaveOptions_Set_compressionLevel | ( | MR_DracoSaveOptions * | _this, |
| int | value ) |
0 - fastest encoding and decoding but the worst compression, 10 - the best compression Modifies a member variable of class MR::DracoSaveOptions named compressionLevel. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in compressionLevel.
| MRC_API void MR_DracoSaveOptions_Set_lengthUnit | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions 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. The reference to the parameter value might be preserved in this object in element lengthUnit. When this function is called, this object will drop object references it held previously in lengthUnit.
| MRC_API void MR_DracoSaveOptions_Set_materialName | ( | MR_DracoSaveOptions * | _this, |
| const char * | value, | ||
| const char * | value_end ) |
the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY) Modifies a member variable of class MR::DracoSaveOptions 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. The reference to the parameter value might be preserved in this object in element materialName. When this function is called, this object will drop object references it held previously in materialName.
| MRC_API void MR_DracoSaveOptions_Set_onlyValidPoints | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions named onlyValidPoints. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in onlyValidPoints.
| MRC_API void MR_DracoSaveOptions_Set_packPrimitives | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions named packPrimitives. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in packPrimitives.
| MRC_API void MR_DracoSaveOptions_Set_positionQuantizationBits | ( | MR_DracoSaveOptions * | _this, |
| int | value ) |
the number of bits to quantize vertex coordinates to (in the range [1, 30]); 0 - no quantization, the coordinates are saved losslessly Modifies a member variable of class MR::DracoSaveOptions named positionQuantizationBits. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in positionQuantizationBits.
| MRC_API void MR_DracoSaveOptions_Set_primitiveColors | ( | MR_DracoSaveOptions * | _this, |
| const MR_FaceColors * | 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::DracoSaveOptions named primitiveColors. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element primitiveColors. When this function is called, this object will drop object references it held previously in primitiveColors.
| MRC_API void MR_DracoSaveOptions_Set_progress | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions named progress. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element progress. When this function is called, this object will drop object references it held previously in progress.
| MRC_API void MR_DracoSaveOptions_Set_saveTriCornerUVCoords | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions named saveTriCornerUVCoords. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in saveTriCornerUVCoords.
| MRC_API void MR_DracoSaveOptions_Set_solidColor | ( | MR_DracoSaveOptions * | _this, |
| const MR_Color * | value ) |
the color of whole object, saved only in the formats having object color: .3mf (if neither per-vertex nor per-triangle colors are given), .obj (Kd in .mtl file), binary .stl (COLOR= in the header) Modifies a member variable of class MR::DracoSaveOptions 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. The reference to the parameter value might be preserved in this object in element solidColor. When this function is called, this object will drop object references it held previously in solidColor.
| MRC_API void MR_DracoSaveOptions_Set_telemetrySignal | ( | MR_DracoSaveOptions * | _this, |
| bool | value ) |
permit telemetry signal about saving Modifies a member variable of class MR::DracoSaveOptions named telemetrySignal. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in telemetrySignal.
| MRC_API void MR_DracoSaveOptions_Set_texture | ( | MR_DracoSaveOptions * | _this, |
| const MR_MeshTexture * | value ) |
optional texture to save with the geometry Modifies a member variable of class MR::DracoSaveOptions named texture. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element texture. When this function is called, this object will drop object references it held previously in texture.
| MRC_API void MR_DracoSaveOptions_Set_uvMap | ( | MR_DracoSaveOptions * | _this, |
| const MR_VertCoords2 * | value ) |
optional per-vertex uv coordinate to save with the geometry Modifies a member variable of class MR::DracoSaveOptions named uvMap. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element uvMap. When this function is called, this object will drop object references it held previously in uvMap.
| MRC_API void MR_DracoSaveOptions_Set_xf | ( | MR_DracoSaveOptions * | _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::DracoSaveOptions named xf. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element xf. When this function is called, this object will drop object references it held previously in xf.
| MRC_API const MR_DracoSaveOptions * MR_DracoSaveOptions_StaticDowncastFrom_MR_SaveSettings | ( | const MR_SaveSettings * | object | ) |
Downcasts an instance of MR::SaveSettings to a derived class MR::DracoSaveOptions. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.
| MRC_API const MR_SaveSettings * MR_DracoSaveOptions_UpcastTo_MR_SaveSettings | ( | const MR_DracoSaveOptions * | object | ) |
Upcasts an instance of MR::DracoSaveOptions to its base class MR::SaveSettings. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.
| MRC_API MR_expected_MR_Mesh_std_string * MR_MeshLoad_fromDrc_std_filesystem_path | ( | const char * | file, |
| const char * | file_end, | ||
| const MR_MeshLoadSettings * | settings ) |
loads from Google Draco .drc file; the vertices with exactly the same coordinates are merged; if the file contains a point cloud, then the mesh without triangles is returned Generated from function MR::MeshLoad::fromDrc. 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_fromDrc_std_istream | ( | MR_std_istream * | in, |
| const MR_MeshLoadSettings * | settings ) |
Generated from function MR::MeshLoad::fromDrc. 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_expected_void_std_string * MR_MeshSave_toDrc_const_std_filesystem_path_ref_MR_DracoSaveOptions | ( | const MR_Mesh * | mesh, |
| const char * | file, | ||
| const char * | file_end, | ||
| const MR_DracoSaveOptions * | options ) |
saves in Google Draco .drc file Generated from function MR::MeshSave::toDrc. 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_toDrc_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::toDrc. 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_toDrc_std_ostream_ref_MR_DracoSaveOptions | ( | const MR_Mesh * | mesh, |
| MR_std_ostream * | out, | ||
| const MR_DracoSaveOptions * | options ) |
Generated from function MR::MeshSave::toDrc. 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_toDrc_std_ostream_ref_MR_SaveSettings | ( | const MR_Mesh * | mesh, |
| MR_std_ostream * | out, | ||
| const MR_SaveSettings * | settings ) |
Generated from function MR::MeshSave::toDrc. 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_fromDrc_std_filesystem_path | ( | const char * | file, |
| const char * | file_end, | ||
| const MR_PointsLoadSettings * | settings ) |
loads from Google Draco .drc file; if the file contains a mesh, then its points are returned without triangles and without merging Generated from function MR::PointsLoad::fromDrc. 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_fromDrc_std_istream | ( | MR_std_istream * | in, |
| const MR_PointsLoadSettings * | settings ) |
Generated from function MR::PointsLoad::fromDrc. 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_expected_void_std_string * MR_PointsSave_toDrc_const_std_filesystem_path_ref_MR_DracoSaveOptions | ( | const MR_PointCloud * | points, |
| const char * | file, | ||
| const char * | file_end, | ||
| const MR_DracoSaveOptions * | options ) |
saves in Google Draco .drc file Generated from function MR::PointsSave::toDrc. 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_toDrc_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::toDrc. 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_toDrc_std_ostream_ref_MR_DracoSaveOptions | ( | const MR_PointCloud * | points, |
| MR_std_ostream * | out, | ||
| const MR_DracoSaveOptions * | options ) |
Generated from function MR::PointsSave::toDrc. 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_toDrc_std_ostream_ref_MR_SaveSettings | ( | const MR_PointCloud * | points, |
| MR_std_ostream * | out, | ||
| const MR_SaveSettings * | settings ) |
Generated from function MR::PointsSave::toDrc. 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.