MeshLib C Docs
Loading...
Searching...
No Matches
MRCtm.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stddef.h>
7#include <stdint.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
14typedef struct MR_MeshLoadSettings MR_MeshLoadSettings; // Defined in `#include <MRCMesh/MRMeshLoadSettings.h>`.
15typedef struct MR_PointCloud MR_PointCloud; // Defined in `#include <MRCMesh/MRPointCloud.h>`.
16typedef struct MR_PointsLoadSettings MR_PointsLoadSettings; // Defined in `#include <MRCMesh/MRPointsLoadSettings.h>`.
17typedef struct MR_SaveSettings MR_SaveSettings; // Defined in `#include <MRCMesh/MRSaveSettings.h>`.
18typedef struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string; // Defined in `#include <MRCMisc/expected_MR_Mesh_std_string.h>`.
19typedef struct MR_expected_MR_PointCloud_std_string MR_expected_MR_PointCloud_std_string; // Defined in `#include <MRCMisc/expected_MR_PointCloud_std_string.h>`.
20typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
21typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
22typedef struct MR_std_ostream MR_std_ostream; // Defined in `#include <MRCMisc/iostream.h>`.
23
24
30
32enum // MR_MeshSave_CtmSaveOptions_MeshCompression
33{
40};
41
47
55
62
67
71
76
77//~= 0.00098
82
83//~= 0.00098
87
88//~= 0.00098
93
99
104
110
116
121
127
131
136
139
142
146
149
153
156
159
164
172
179
187
195
203
210
216
221
227
233
238
244
248
253
256
259
263
266
270
273
276
281
289
296
304
312
313#ifdef __cplusplus
314} // extern "C"
315#endif
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 MR_expected_MR_PointCloud_std_string * MR_PointsLoad_fromCtm_std_filesystem_path(const char *file, const char *file_end, const MR_PointsLoadSettings *settings)
@ MR_MeshSave_CtmSaveOptions_MeshCompression_Lossy
Definition MRCtm.h:39
@ MR_MeshSave_CtmSaveOptions_MeshCompression_None
no compression at all, fast but not effective
Definition MRCtm.h:35
@ MR_MeshSave_CtmSaveOptions_MeshCompression_Lossless
compression with loss in vertex coordinates
Definition MRCtm.h:37
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:20
struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string
Definition MRCtm.h:18
MRC_API MR_MeshSave_CtmSaveOptions_MeshCompression * MR_MeshSave_CtmSaveOptions_GetMutable_meshCompression(MR_MeshSave_CtmSaveOptions *_this)
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.
struct MR_Mesh MR_Mesh
Definition MRCtm.h:13
MRC_API void MR_MeshSave_CtmSaveOptions_Set_comment(MR_MeshSave_CtmSaveOptions *_this, const char *value)
MRC_API MR_expected_MR_Mesh_std_string * MR_MeshLoad_fromCtm_std_istream(MR_std_istream *in, const MR_MeshLoadSettings *settings)
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)
MRC_API const char *const * MR_PointsSave_CtmSavePointsOptions_Get_comment(const MR_PointsSave_CtmSavePointsOptions *_this)
MRC_API const float * MR_MeshSave_CtmSaveOptions_Get_vertexPrecision(const MR_MeshSave_CtmSaveOptions *_this)
MRC_API int32_t * MR_PointsSave_CtmSavePointsOptions_GetMutable_compressionLevel(MR_PointsSave_CtmSavePointsOptions *_this)
MRC_API MR_PointsSave_CtmSavePointsOptions * MR_PointsSave_CtmSavePointsOptions_AssignFromAnother(MR_PointsSave_CtmSavePointsOptions *_this, MR_PassBy _other_pass_by, MR_PointsSave_CtmSavePointsOptions *_other)
MRC_API const MR_SaveSettings * MR_MeshSave_CtmSaveOptions_UpcastTo_MR_SaveSettings(const MR_MeshSave_CtmSaveOptions *object)
MRC_API const char *const * MR_MeshSave_CtmSaveOptions_Get_comment(const MR_MeshSave_CtmSaveOptions *_this)
MRC_API MR_MeshSave_CtmSaveOptions * MR_MeshSave_CtmSaveOptions_AssignFromAnother(MR_MeshSave_CtmSaveOptions *_this, MR_PassBy _other_pass_by, MR_MeshSave_CtmSaveOptions *_other)
MRC_API MR_MeshSave_CtmSaveOptions * MR_MeshSave_CtmSaveOptions_ConstructFromAnother(MR_PassBy _other_pass_by, MR_MeshSave_CtmSaveOptions *_other)
MRC_API float * MR_MeshSave_CtmSaveOptions_GetMutable_vertexPrecision(MR_MeshSave_CtmSaveOptions *_this)
MRC_API int32_t * MR_MeshSave_CtmSaveOptions_GetMutable_compressionLevel(MR_MeshSave_CtmSaveOptions *_this)
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)
MRC_API MR_MeshSave_CtmSaveOptions * MR_MeshSave_CtmSaveOptions_DefaultConstruct(void)
MRC_API MR_MeshSave_CtmSaveOptions * MR_MeshSave_CtmSaveOptions_DefaultConstructArray(size_t num_elems)
MRC_API const char ** MR_MeshSave_CtmSaveOptions_GetMutable_comment(MR_MeshSave_CtmSaveOptions *_this)
struct MR_MeshLoadSettings MR_MeshLoadSettings
Definition MRCtm.h:14
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...
struct MR_SaveSettings MR_SaveSettings
Definition MRCtm.h:17
struct MR_PointsLoadSettings MR_PointsLoadSettings
Definition MRCtm.h:16
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)
MRC_API const char ** MR_PointsSave_CtmSavePointsOptions_GetMutable_comment(MR_PointsSave_CtmSavePointsOptions *_this)
MRC_API void MR_MeshSave_CtmSaveOptions_DestroyArray(const MR_MeshSave_CtmSaveOptions *_this)
Destroys a heap-allocated array of MR_MeshSave_CtmSaveOptions. Does nothing if the pointer is null.
MRC_API MR_PointsSave_CtmSavePointsOptions * MR_PointsSave_CtmSavePointsOptions_DefaultConstructArray(size_t num_elems)
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...
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.
int32_t MR_MeshSave_CtmSaveOptions_MeshCompression
Definition MRCtm.h:31
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...
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)
struct MR_std_ostream MR_std_ostream
Definition MRCtm.h:22
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_comment(MR_PointsSave_CtmSavePointsOptions *_this, const char *value)
MRC_API void MR_MeshSave_CtmSaveOptions_Set_vertexPrecision(MR_MeshSave_CtmSaveOptions *_this, float value)
MRC_API void MR_MeshSave_CtmSaveOptions_Set_compressionLevel(MR_MeshSave_CtmSaveOptions *_this, int32_t value)
MRC_API MR_expected_MR_PointCloud_std_string * MR_PointsLoad_fromCtm_std_istream(MR_std_istream *in, const MR_PointsLoadSettings *settings)
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_compressionLevel(MR_PointsSave_CtmSavePointsOptions *_this, int32_t value)
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)
struct MR_expected_MR_PointCloud_std_string MR_expected_MR_PointCloud_std_string
Definition MRCtm.h:19
struct MR_PointCloud MR_PointCloud
Definition MRCtm.h:15
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)
MRC_API const MR_MeshSave_CtmSaveOptions_MeshCompression * MR_MeshSave_CtmSaveOptions_Get_meshCompression(const MR_MeshSave_CtmSaveOptions *_this)
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)
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...
MRC_API const int32_t * MR_PointsSave_CtmSavePointsOptions_Get_compressionLevel(const MR_PointsSave_CtmSavePointsOptions *_this)
MRC_API MR_PointsSave_CtmSavePointsOptions * MR_PointsSave_CtmSavePointsOptions_DefaultConstruct(void)
MRC_API void MR_MeshSave_CtmSaveOptions_Set_meshCompression(MR_MeshSave_CtmSaveOptions *_this, MR_MeshSave_CtmSaveOptions_MeshCompression value)
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...
MRC_API MR_PointsSave_CtmSavePointsOptions * MR_PointsSave_CtmSavePointsOptions_ConstructFromAnother(MR_PassBy _other_pass_by, MR_PointsSave_CtmSavePointsOptions *_other)
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)
MRC_API const MR_SaveSettings * MR_PointsSave_CtmSavePointsOptions_UpcastTo_MR_SaveSettings(const MR_PointsSave_CtmSavePointsOptions *object)
struct MR_PointsSave_CtmSavePointsOptions MR_PointsSave_CtmSavePointsOptions
Definition MRCtm.h:46
struct MR_MeshSave_CtmSaveOptions MR_MeshSave_CtmSaveOptions
Definition MRCtm.h:29
struct MR_std_istream MR_std_istream
Definition MRCtm.h:21
MRC_API const int32_t * MR_MeshSave_CtmSaveOptions_Get_compressionLevel(const MR_MeshSave_CtmSaveOptions *_this)
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...
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)
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11