MeshLib C Docs
Loading...
Searching...
No Matches
MRDraco.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRColor.h>
5#include <MRCMisc/common.h>
6#include <MRCMisc/exports.h>
7
8#include <stdbool.h>
9#include <stddef.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_AffineXf3d MR_AffineXf3d; // Defined in `#include <MRCMesh/MRAffineXf.h>`.
16typedef struct MR_FaceColors MR_FaceColors; // Defined in `#include <MRCMesh/MRVector.h>`.
17typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
18typedef struct MR_MeshLoadSettings MR_MeshLoadSettings; // Defined in `#include <MRCMesh/MRMeshLoadSettings.h>`.
19typedef struct MR_MeshTexture MR_MeshTexture; // Defined in `#include <MRCMesh/MRMeshTexture.h>`.
20typedef struct MR_PointCloud MR_PointCloud; // Defined in `#include <MRCMesh/MRPointCloud.h>`.
21typedef struct MR_PointsLoadSettings MR_PointsLoadSettings; // Defined in `#include <MRCMesh/MRPointsLoadSettings.h>`.
22typedef struct MR_SaveSettings MR_SaveSettings; // Defined in `#include <MRCMesh/MRSaveSettings.h>`.
23typedef struct MR_VertColors MR_VertColors; // Defined in `#include <MRCMesh/MRVector.h>`.
24typedef struct MR_VertCoords2 MR_VertCoords2; // Defined in `#include <MRCMesh/MRVector.h>`.
25typedef struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string; // Defined in `#include <MRCMisc/expected_MR_Mesh_std_string.h>`.
26typedef struct MR_expected_MR_PointCloud_std_string MR_expected_MR_PointCloud_std_string; // Defined in `#include <MRCMisc/expected_MR_PointCloud_std_string.h>`.
27typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
28typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
29typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
30typedef struct MR_std_optional_MR_Color MR_std_optional_MR_Color; // Defined in `#include <MRCMisc/std_optional_MR_Color.h>`.
31typedef struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit; // Defined in `#include <MRCMisc/std_optional_MR_LengthUnit.h>`.
32typedef struct MR_std_ostream MR_std_ostream; // Defined in `#include <MRCMisc/iostream.h>`.
33typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
34
35
43
50
56
63
71
78
86
94
101
109
120
130
141
148
155
162
169
176
183
190
197
204
212
219
227
234
241
248
255
263MRC_API void MR_DracoSaveOptions_Set_materialName(MR_DracoSaveOptions *_this, const char *value, const char *value_end);
264
271
278
285
292
299
307
314
322
331
339
346
352
359
366
373
380
384
389
393
397
402
406
412
417
422
425
428
435
445
452
460
467
475
483
491
498
506
513
521
529
530#ifdef __cplusplus
531} // extern "C"
532#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:27
struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string
Definition MRCtm.h:25
struct MR_VertColors MR_VertColors
Definition MRCtm.h:23
struct MR_Mesh MR_Mesh
Definition MRCtm.h:17
struct MR_MeshLoadSettings MR_MeshLoadSettings
Definition MRCtm.h:18
struct MR_SaveSettings MR_SaveSettings
Definition MRCtm.h:22
struct MR_PointsLoadSettings MR_PointsLoadSettings
Definition MRCtm.h:21
struct MR_std_string MR_std_string
Definition MRCtm.h:33
struct MR_FaceColors MR_FaceColors
Definition MRCtm.h:16
struct MR_std_ostream MR_std_ostream
A C++ output stream.
Definition MRCtm.h:32
struct MR_expected_MR_PointCloud_std_string MR_expected_MR_PointCloud_std_string
Definition MRCtm.h:26
struct MR_PointCloud MR_PointCloud
Definition MRCtm.h:20
struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit
Definition MRCtm.h:31
struct MR_MeshTexture MR_MeshTexture
Definition MRCtm.h:19
struct MR_VertCoords2 MR_VertCoords2
Definition MRCtm.h:24
struct MR_std_istream MR_std_istream
A C++ input stream.
Definition MRCtm.h:29
struct MR_std_optional_MR_Color MR_std_optional_MR_Color
Definition MRCtm.h:30
MRC_API const int * MR_DracoSaveOptions_Get_positionQuantizationBits(const MR_DracoSaveOptions *_this)
MRC_API const MR_SaveSettings * MR_DracoSaveOptions_UpcastTo_MR_SaveSettings(const MR_DracoSaveOptions *object)
MRC_API void MR_DracoSaveOptions_Set_materialName(MR_DracoSaveOptions *_this, const char *value, const char *value_end)
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)
MRC_API void MR_DracoSaveOptions_Set_telemetrySignal(MR_DracoSaveOptions *_this, bool value)
MRC_API const MR_VertCoords2 *const * MR_DracoSaveOptions_Get_uvMap(const MR_DracoSaveOptions *_this)
MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_DefaultConstructArray(size_t num_elems)
MRC_API const MR_std_string * MR_DracoSaveOptions_Get_materialName(const MR_DracoSaveOptions *_this)
MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_DefaultConstruct(void)
MRC_API void MR_DracoSaveOptions_Set_uvMap(MR_DracoSaveOptions *_this, const MR_VertCoords2 *value)
MRC_API void MR_DracoSaveOptions_Set_lengthUnit(MR_DracoSaveOptions *_this, const MR_LengthUnit *value)
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 MR_expected_MR_PointCloud_std_string * MR_PointsLoad_fromDrc_std_filesystem_path(const char *file, const char *file_end, const MR_PointsLoadSettings *settings)
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 MR_std_string * MR_DracoSaveOptions_GetMutable_materialName(MR_DracoSaveOptions *_this)
MRC_API void MR_DracoSaveOptions_Set_primitiveColors(MR_DracoSaveOptions *_this, const MR_FaceColors *value)
MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_MutableStaticDowncastFrom_MR_SaveSettings(MR_SaveSettings *object)
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)
MRC_API MR_expected_MR_Mesh_std_string * MR_MeshLoad_fromDrc_std_istream(MR_std_istream *in, const MR_MeshLoadSettings *settings)
MRC_API const MR_VertColors *const * MR_DracoSaveOptions_Get_colors(const MR_DracoSaveOptions *_this)
MRC_API MR_std_function_bool_from_float * MR_DracoSaveOptions_GetMutable_progress(MR_DracoSaveOptions *_this)
MRC_API const MR_VertCoords2 ** MR_DracoSaveOptions_GetMutable_uvMap(MR_DracoSaveOptions *_this)
MRC_API void MR_DracoSaveOptions_Set_progress(MR_DracoSaveOptions *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *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)
MRC_API const MR_MeshTexture ** MR_DracoSaveOptions_GetMutable_texture(MR_DracoSaveOptions *_this)
MRC_API const bool * MR_DracoSaveOptions_Get_onlyValidPoints(const MR_DracoSaveOptions *_this)
MRC_API const bool * MR_DracoSaveOptions_Get_packPrimitives(const MR_DracoSaveOptions *_this)
MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_AssignFromAnother(MR_DracoSaveOptions *_this, MR_PassBy _other_pass_by, MR_DracoSaveOptions *_other)
MRC_API const MR_std_optional_MR_LengthUnit * MR_DracoSaveOptions_Get_lengthUnit(const MR_DracoSaveOptions *_this)
MRC_API void MR_DracoSaveOptions_Set_saveTriCornerUVCoords(MR_DracoSaveOptions *_this, bool value)
MRC_API void MR_DracoSaveOptions_Set_texture(MR_DracoSaveOptions *_this, const MR_MeshTexture *value)
MRC_API const bool * MR_DracoSaveOptions_Get_saveTriCornerUVCoords(const MR_DracoSaveOptions *_this)
MRC_API void MR_DracoSaveOptions_Set_positionQuantizationBits(MR_DracoSaveOptions *_this, int value)
MRC_API void MR_DracoSaveOptions_Set_solidColor(MR_DracoSaveOptions *_this, const MR_Color *value)
MRC_API bool * MR_DracoSaveOptions_GetMutable_onlyValidPoints(MR_DracoSaveOptions *_this)
MRC_API const int * MR_DracoSaveOptions_Get_compressionLevel(const MR_DracoSaveOptions *_this)
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)
MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_ConstructFromAnother(MR_PassBy _other_pass_by, MR_DracoSaveOptions *_other)
MRC_API int * MR_DracoSaveOptions_GetMutable_compressionLevel(MR_DracoSaveOptions *_this)
MRC_API MR_std_optional_MR_Color * MR_DracoSaveOptions_GetMutable_solidColor(MR_DracoSaveOptions *_this)
MRC_API MR_SaveSettings * MR_DracoSaveOptions_MutableUpcastTo_MR_SaveSettings(MR_DracoSaveOptions *object)
MRC_API const MR_FaceColors ** MR_DracoSaveOptions_GetMutable_primitiveColors(MR_DracoSaveOptions *_this)
MRC_API const MR_DracoSaveOptions * MR_DracoSaveOptions_OffsetPtr(const MR_DracoSaveOptions *ptr, ptrdiff_t i)
MRC_API bool * MR_DracoSaveOptions_GetMutable_packPrimitives(MR_DracoSaveOptions *_this)
MRC_API bool * MR_DracoSaveOptions_GetMutable_telemetrySignal(MR_DracoSaveOptions *_this)
MRC_API void MR_DracoSaveOptions_Set_compressionLevel(MR_DracoSaveOptions *_this, int value)
MRC_API const MR_MeshTexture *const * MR_DracoSaveOptions_Get_texture(const MR_DracoSaveOptions *_this)
MRC_API const MR_DracoSaveOptions * MR_DracoSaveOptions_StaticDowncastFrom_MR_SaveSettings(const MR_SaveSettings *object)
MRC_API void MR_DracoSaveOptions_Set_colors(MR_DracoSaveOptions *_this, const MR_VertColors *value)
MRC_API int * MR_DracoSaveOptions_GetMutable_positionQuantizationBits(MR_DracoSaveOptions *_this)
MRC_API void MR_DracoSaveOptions_Set_packPrimitives(MR_DracoSaveOptions *_this, bool value)
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)
MRC_API void MR_DracoSaveOptions_Set_onlyValidPoints(MR_DracoSaveOptions *_this, bool value)
MRC_API const MR_std_optional_MR_Color * MR_DracoSaveOptions_Get_solidColor(const MR_DracoSaveOptions *_this)
MRC_API MR_expected_MR_PointCloud_std_string * MR_PointsLoad_fromDrc_std_istream(MR_std_istream *in, const MR_PointsLoadSettings *settings)
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)
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)
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)
struct MR_DracoSaveOptions MR_DracoSaveOptions
Definition MRDraco.h:42
MRC_API MR_std_optional_MR_LengthUnit * MR_DracoSaveOptions_GetMutable_lengthUnit(MR_DracoSaveOptions *_this)
MRC_API const bool * MR_DracoSaveOptions_Get_telemetrySignal(const MR_DracoSaveOptions *_this)
MRC_API const MR_std_function_bool_from_float * MR_DracoSaveOptions_Get_progress(const MR_DracoSaveOptions *_this)
MRC_API void MR_DracoSaveOptions_Set_xf(MR_DracoSaveOptions *_this, const MR_AffineXf3d *value)
MRC_API const MR_AffineXf3d *const * MR_DracoSaveOptions_Get_xf(const MR_DracoSaveOptions *_this)
MRC_API const MR_VertColors ** MR_DracoSaveOptions_GetMutable_colors(MR_DracoSaveOptions *_this)
MRC_API bool * MR_DracoSaveOptions_GetMutable_saveTriCornerUVCoords(MR_DracoSaveOptions *_this)
MRC_API const MR_AffineXf3d ** MR_DracoSaveOptions_GetMutable_xf(MR_DracoSaveOptions *_this)
MRC_API MR_DracoSaveOptions * MR_DracoSaveOptions_OffsetMutablePtr(MR_DracoSaveOptions *ptr, ptrdiff_t i)
MRC_API const MR_FaceColors *const * MR_DracoSaveOptions_Get_primitiveColors(const MR_DracoSaveOptions *_this)
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)
MR_LengthUnit
Definition MRUnitInfo.h:22
MR_PassBy
Definition common.h:13
#define MRC_API
Definition include/MRCMisc/exports.h:11
Definition MRAffineXf.h:47
Generated from class MR::Color.
Definition MRColor.h:18