MeshLib C Docs
Loading...
Searching...
No Matches
MRSaveSettings.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRColor.h>
4#include <MRCMesh/MRId.h>
6#include <MRCMesh/MRVector3.h>
7#include <MRCMisc/common.h>
8#include <MRCMisc/exports.h>
9
10#include <stdbool.h>
11#include <stddef.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17typedef struct MR_AffineXf3d MR_AffineXf3d; // Defined in `#include <MRCMesh/MRAffineXf.h>`.
18typedef struct MR_Matrix3d MR_Matrix3d; // Defined in `#include <MRCMesh/MRMatrix3.h>`.
19typedef struct MR_MeshSave_CtmSaveOptions MR_MeshSave_CtmSaveOptions; // Defined in `#include <MRCIOExtras/MRCtm.h>`.
20typedef struct MR_MeshTexture MR_MeshTexture; // Defined in `#include <MRCMesh/MRMeshTexture.h>`.
21typedef struct MR_PointsSave_CtmSavePointsOptions MR_PointsSave_CtmSavePointsOptions; // Defined in `#include <MRCIOExtras/MRCtm.h>`.
22typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
23typedef struct MR_VertColors MR_VertColors; // Defined in `#include <MRCMesh/MRVector.h>`.
24typedef struct MR_VertCoords MR_VertCoords; // Defined in `#include <MRCMesh/MRVector.h>`.
25typedef struct MR_VertCoords2 MR_VertCoords2; // Defined in `#include <MRCMesh/MRVector.h>`.
26typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
27typedef struct MR_std_optional_MR_Color MR_std_optional_MR_Color; // Defined in `#include <MRCMisc/std_optional_MR_Color.h>`.
28typedef struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit; // Defined in `#include <MRCMisc/std_optional_MR_LengthUnit.h>`.
29typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
30typedef struct MR_std_vector_MR_Color MR_std_vector_MR_Color; // Defined in `#include <MRCMisc/std_vector_MR_Color.h>`.
31
32
41
46
53
59
66
76
85
95
101
106
112
118
123
129
135
140
146
153
159
166
172
177
183
189
195MRC_API void MR_SaveSettings_Set_materialName(MR_SaveSettings *_this, const char *value, const char *value_end);
196
202
208
213
219
225
231
237
243
249
255
261
266
272
276
281
288MRC_API MR_SaveSettings *MR_SaveSettings_ConstructFrom(bool onlyValidPoints, bool packPrimitives, const MR_VertColors *colors, const MR_std_vector_MR_Color *primitiveColors, const MR_VertCoords2 *uvMap, bool saveTriCornerUVCoords, const MR_MeshTexture *texture, const char *materialName, const char *materialName_end, const MR_AffineXf3d *xf, const MR_LengthUnit *lengthUnit, const MR_Color *solidColor, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress);
289
292
295
300
304
309
313
317
320
323
328
333
338
343
348
352
355
358
363MRC_API MR_VertRenumber *MR_VertRenumber_Construct(const MR_VertBitSet *validVerts, bool saveValidOnly);
364
367
370
375
379
384
389
398MRC_API const MR_VertCoords *MR_transformPoints(const MR_VertCoords *verts, const MR_VertBitSet *validVerts, const MR_AffineXf3d *xf, MR_VertCoords *buf, const MR_VertRenumber *vertRenumber);
399
407MRC_API const MR_VertCoords *MR_transformNormals(const MR_VertCoords *normals, const MR_VertBitSet *validVerts, const MR_Matrix3d *m, MR_VertCoords *buf);
408
409#ifdef __cplusplus
410} // extern "C"
411#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_VertCoords MR_VertCoords
Definition MRAABBTreePoints.h:21
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:22
struct MR_VertColors MR_VertColors
Definition MRCtm.h:22
struct MR_SaveSettings MR_SaveSettings
Definition MRCtm.h:21
struct MR_std_string MR_std_string
Definition MRCtm.h:32
struct MR_std_vector_MR_Color MR_std_vector_MR_Color
Definition MRCtm.h:33
struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit
Definition MRCtm.h:30
struct MR_MeshTexture MR_MeshTexture
Definition MRCtm.h:18
struct MR_VertCoords2 MR_VertCoords2
Definition MRCtm.h:23
struct MR_PointsSave_CtmSavePointsOptions MR_PointsSave_CtmSavePointsOptions
Definition MRCtm.h:58
struct MR_MeshSave_CtmSaveOptions MR_MeshSave_CtmSaveOptions
Definition MRCtm.h:51
struct MR_std_optional_MR_Color MR_std_optional_MR_Color
Definition MRCtm.h:29
MRC_API MR_Vector3f MR_applyFloat_const_MR_AffineXf3d_ptr(const MR_AffineXf3d *xf, const MR_Vector3f *p)
MRC_API const MR_VertColors ** MR_SaveSettings_GetMutable_colors(MR_SaveSettings *_this)
MRC_API MR_Vector3d MR_applyDouble_const_MR_AffineXf3d_ptr(const MR_AffineXf3d *xf, const MR_Vector3f *p)
MRC_API const MR_std_optional_MR_Color * MR_SaveSettings_Get_solidColor(const MR_SaveSettings *_this)
MRC_API const bool * MR_SaveSettings_Get_saveTriCornerUVCoords(const MR_SaveSettings *_this)
MRC_API const bool * MR_SaveSettings_Get_packPrimitives(const MR_SaveSettings *_this)
MRC_API MR_PointsSave_CtmSavePointsOptions * MR_SaveSettings_MutableStaticDowncastTo_MR_PointsSave_CtmSavePointsOptions(MR_SaveSettings *object)
MRC_API const MR_VertCoords2 ** MR_SaveSettings_GetMutable_uvMap(MR_SaveSettings *_this)
MRC_API void MR_SaveSettings_Set_primitiveColors(MR_SaveSettings *_this, const MR_std_vector_MR_Color *value)
MRC_API const MR_VertRenumber * MR_VertRenumber_OffsetPtr(const MR_VertRenumber *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 MR_AffineXf3d *const * MR_SaveSettings_Get_xf(const MR_SaveSettings *_this)
MRC_API void MR_SaveSettings_Set_colors(MR_SaveSettings *_this, const MR_VertColors *value)
MRC_API const MR_std_vector_MR_Color ** MR_SaveSettings_GetMutable_primitiveColors(MR_SaveSettings *_this)
MRC_API void MR_SaveSettings_Set_texture(MR_SaveSettings *_this, const MR_MeshTexture *value)
MRC_API const MR_MeshTexture *const * MR_SaveSettings_Get_texture(const MR_SaveSettings *_this)
MRC_API const MR_VertCoords * MR_transformNormals(const MR_VertCoords *normals, const MR_VertBitSet *validVerts, const MR_Matrix3d *m, MR_VertCoords *buf)
MRC_API MR_SaveSettings * MR_SaveSettings_OffsetMutablePtr(MR_SaveSettings *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_VertRenumber * MR_VertRenumber_AssignFromAnother(MR_VertRenumber *_this, MR_PassBy _other_pass_by, MR_VertRenumber *_other)
MRC_API void MR_SaveSettings_Set_lengthUnit(MR_SaveSettings *_this, const MR_LengthUnit *value)
MRC_API const MR_MeshSave_CtmSaveOptions * MR_SaveSettings_StaticDowncastTo_MR_MeshSave_CtmSaveOptions(const MR_SaveSettings *object)
MRC_API void MR_SaveSettings_Set_uvMap(MR_SaveSettings *_this, const MR_VertCoords2 *value)
MRC_API const bool * MR_SaveSettings_Get_onlyValidPoints(const MR_SaveSettings *_this)
MRC_API void MR_VertRenumber_Destroy(const MR_VertRenumber *_this)
Destroys a heap-allocated instance of MR_VertRenumber. Does nothing if the pointer is null.
MRC_API bool * MR_SaveSettings_GetMutable_onlyValidPoints(MR_SaveSettings *_this)
MRC_API MR_SaveSettings * MR_SaveSettings_ConstructFromAnother(MR_PassBy _other_pass_by, MR_SaveSettings *_other)
MRC_API void MR_SaveSettings_Destroy(const MR_SaveSettings *_this)
Destroys a heap-allocated instance of MR_SaveSettings. Does nothing if the pointer is null.
MRC_API MR_VertRenumber * MR_VertRenumber_ConstructFromAnother(MR_PassBy _other_pass_by, MR_VertRenumber *_other)
MRC_API MR_Vector3d MR_applyDouble_const_MR_Matrix3d_ptr(const MR_Matrix3d *m, const MR_Vector3f *n)
MRC_API const MR_PointsSave_CtmSavePointsOptions * MR_SaveSettings_StaticDowncastTo_MR_PointsSave_CtmSavePointsOptions(const MR_SaveSettings *object)
MRC_API int MR_VertRenumber_sizeVerts(const MR_VertRenumber *_this)
MRC_API void MR_SaveSettings_DestroyArray(const MR_SaveSettings *_this)
Destroys a heap-allocated array of MR_SaveSettings. Does nothing if the pointer is null.
MRC_API MR_SaveSettings * MR_SaveSettings_AssignFromAnother(MR_SaveSettings *_this, MR_PassBy _other_pass_by, MR_SaveSettings *_other)
MRC_API MR_SaveSettings * MR_SaveSettings_DefaultConstructArray(size_t num_elems)
MRC_API const MR_SaveSettings * MR_SaveSettings_OffsetPtr(const MR_SaveSettings *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_Vector3f MR_applyFloat_const_MR_Matrix3d_ptr(const MR_Matrix3d *m, const MR_Vector3f *n)
MRC_API const MR_MeshTexture ** MR_SaveSettings_GetMutable_texture(MR_SaveSettings *_this)
MRC_API bool MR_VertRenumber_saveValidOnly(const MR_VertRenumber *_this)
MRC_API void MR_SaveSettings_Set_saveTriCornerUVCoords(MR_SaveSettings *_this, bool value)
MRC_API const MR_VertColors *const * MR_SaveSettings_Get_colors(const MR_SaveSettings *_this)
MRC_API const MR_std_optional_MR_LengthUnit * MR_SaveSettings_Get_lengthUnit(const MR_SaveSettings *_this)
MRC_API void MR_VertRenumber_DestroyArray(const MR_VertRenumber *_this)
Destroys a heap-allocated array of MR_VertRenumber. Does nothing if the pointer is null.
MRC_API const MR_std_function_bool_from_float * MR_SaveSettings_Get_progress(const MR_SaveSettings *_this)
MRC_API MR_std_optional_MR_LengthUnit * MR_SaveSettings_GetMutable_lengthUnit(MR_SaveSettings *_this)
MRC_API bool * MR_SaveSettings_GetMutable_packPrimitives(MR_SaveSettings *_this)
MRC_API int MR_VertRenumber_call(const MR_VertRenumber *_this, MR_VertId v)
MRC_API void MR_SaveSettings_Set_packPrimitives(MR_SaveSettings *_this, bool value)
MRC_API MR_std_string * MR_SaveSettings_GetMutable_materialName(MR_SaveSettings *_this)
MRC_API const MR_AffineXf3d ** MR_SaveSettings_GetMutable_xf(MR_SaveSettings *_this)
MRC_API const MR_VertCoords2 *const * MR_SaveSettings_Get_uvMap(const MR_SaveSettings *_this)
MRC_API const MR_std_string * MR_SaveSettings_Get_materialName(const MR_SaveSettings *_this)
MRC_API MR_std_optional_MR_Color * MR_SaveSettings_GetMutable_solidColor(MR_SaveSettings *_this)
MRC_API const MR_VertCoords * MR_transformPoints(const MR_VertCoords *verts, const MR_VertBitSet *validVerts, const MR_AffineXf3d *xf, MR_VertCoords *buf, const MR_VertRenumber *vertRenumber)
MRC_API bool * MR_SaveSettings_GetMutable_saveTriCornerUVCoords(MR_SaveSettings *_this)
MRC_API void MR_SaveSettings_Set_materialName(MR_SaveSettings *_this, const char *value, const char *value_end)
MRC_API void MR_SaveSettings_Set_solidColor(MR_SaveSettings *_this, const MR_Color *value)
MRC_API void MR_SaveSettings_Set_xf(MR_SaveSettings *_this, const MR_AffineXf3d *value)
MRC_API void MR_SaveSettings_Set_onlyValidPoints(MR_SaveSettings *_this, bool value)
MRC_API void MR_SaveSettings_Set_progress(MR_SaveSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API MR_VertRenumber * MR_VertRenumber_OffsetMutablePtr(MR_VertRenumber *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
struct MR_VertRenumber MR_VertRenumber
Definition MRSaveSettings.h:45
MRC_API const MR_std_vector_MR_Color *const * MR_SaveSettings_Get_primitiveColors(const MR_SaveSettings *_this)
MRC_API MR_MeshSave_CtmSaveOptions * MR_SaveSettings_MutableStaticDowncastTo_MR_MeshSave_CtmSaveOptions(MR_SaveSettings *object)
MRC_API MR_SaveSettings * MR_SaveSettings_DefaultConstruct(void)
MRC_API MR_std_function_bool_from_float * MR_SaveSettings_GetMutable_progress(MR_SaveSettings *_this)
MRC_API MR_VertRenumber * MR_VertRenumber_Construct(const MR_VertBitSet *validVerts, bool saveValidOnly)
MRC_API MR_SaveSettings * MR_SaveSettings_ConstructFrom(bool onlyValidPoints, bool packPrimitives, const MR_VertColors *colors, const MR_std_vector_MR_Color *primitiveColors, const MR_VertCoords2 *uvMap, bool saveTriCornerUVCoords, const MR_MeshTexture *texture, const char *materialName, const char *materialName_end, const MR_AffineXf3d *xf, const MR_LengthUnit *lengthUnit, const MR_Color *solidColor, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
MR_LengthUnit
Definition MRUnitInfo.h:22
MR_PassBy
Definition common.h:23
#define MRC_API
Definition exports.h:11
Definition MRAffineXf.h:47
Generated from class MR::Color.
Definition MRColor.h:18
Definition MRMatrix3.h:82
Definition MRVector3.h:61
Definition MRVector3.h:52
Definition MRId.h:55