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
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
13typedef struct MR_MeshLoadSettings MR_MeshLoadSettings; // Defined in `#include <MRCMesh/MRMeshLoadSettings.h>`.
14typedef struct MR_PointCloud MR_PointCloud; // Defined in `#include <MRCMesh/MRPointCloud.h>`.
15typedef struct MR_PointsLoadSettings MR_PointsLoadSettings; // Defined in `#include <MRCMesh/MRPointsLoadSettings.h>`.
16typedef struct MR_SaveSettings MR_SaveSettings; // Defined in `#include <MRCMesh/MRSaveSettings.h>`.
17typedef struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string; // Defined in `#include <MRCMisc/expected_MR_Mesh_std_string.h>`.
18typedef struct MR_expected_MR_PointCloud_std_string MR_expected_MR_PointCloud_std_string; // Defined in `#include <MRCMisc/expected_MR_PointCloud_std_string.h>`.
19typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
20typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
21typedef struct MR_std_ostream MR_std_ostream; // Defined in `#include <MRCMisc/iostream.h>`.
22
23
29
39
45
53
60
65
69
74
75//~= 0.00098
80
81//~= 0.00098
85
86//~= 0.00098
91
97
102
108
114
119
125
129
134
137
140
144
147
151
154
157
162
170
177
185
193
201
208
214
219
225
231
236
242
246
251
254
257
261
264
268
271
274
279
287
294
302
310
311#ifdef __cplusplus
312} // extern "C"
313#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)
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:19
MRC_API void MR_MeshSave_CtmSaveOptions_Set_compressionLevel(MR_MeshSave_CtmSaveOptions *_this, int value)
struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string
Definition MRCtm.h:17
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.
MRC_API void MR_PointsSave_CtmSavePointsOptions_Set_compressionLevel(MR_PointsSave_CtmSavePointsOptions *_this, int value)
struct MR_Mesh MR_Mesh
Definition MRCtm.h:12
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 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 int * MR_PointsSave_CtmSavePointsOptions_GetMutable_compressionLevel(MR_PointsSave_CtmSavePointsOptions *_this)
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 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:13
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:16
struct MR_PointsLoadSettings MR_PointsLoadSettings
Definition MRCtm.h:15
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 const int * MR_MeshSave_CtmSaveOptions_Get_compressionLevel(const MR_MeshSave_CtmSaveOptions *_this)
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.
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:21
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 int * MR_MeshSave_CtmSaveOptions_GetMutable_compressionLevel(MR_MeshSave_CtmSaveOptions *_this)
MRC_API MR_expected_MR_PointCloud_std_string * MR_PointsLoad_fromCtm_std_istream(MR_std_istream *in, const MR_PointsLoadSettings *settings)
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:18
struct MR_PointCloud MR_PointCloud
Definition MRCtm.h:14
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 int * MR_PointsSave_CtmSavePointsOptions_Get_compressionLevel(const MR_PointsSave_CtmSavePointsOptions *_this)
MR_MeshSave_CtmSaveOptions_MeshCompression
Definition MRCtm.h:31
@ MR_MeshSave_CtmSaveOptions_MeshCompression_Lossy
Definition MRCtm.h:37
@ MR_MeshSave_CtmSaveOptions_MeshCompression_None
no compression at all, fast but not effective
Definition MRCtm.h:33
@ MR_MeshSave_CtmSaveOptions_MeshCompression_Lossless
compression with loss in vertex coordinates
Definition MRCtm.h:35
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:44
struct MR_MeshSave_CtmSaveOptions MR_MeshSave_CtmSaveOptions
Definition MRCtm.h:28
struct MR_std_istream MR_std_istream
Definition MRCtm.h:20
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