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_MeshTexture MR_MeshTexture; // Defined in `#include <MRCMesh/MRMeshTexture.h>`.
20typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
21typedef struct MR_VertColors MR_VertColors; // Defined in `#include <MRCMesh/MRVector.h>`.
22typedef struct MR_VertCoords MR_VertCoords; // Defined in `#include <MRCMesh/MRVector.h>`.
23typedef struct MR_VertCoords2 MR_VertCoords2; // Defined in `#include <MRCMesh/MRVector.h>`.
24typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
25typedef struct MR_std_optional_MR_Color MR_std_optional_MR_Color; // Defined in `#include <MRCMisc/std_optional_MR_Color.h>`.
26typedef struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit; // Defined in `#include <MRCMisc/std_optional_MR_LengthUnit.h>`.
27typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
28typedef struct MR_std_vector_MR_Color MR_std_vector_MR_Color; // Defined in `#include <MRCMisc/std_vector_MR_Color.h>`.
29
30
38typedef struct MR_SaveSettings MR_SaveSettings;
39
44
52
59
67
78
88
99
106
113
120
127
134
141
148
155
162
170
177
185
192
199
206
213
221MRC_API void MR_SaveSettings_Set_materialName(MR_SaveSettings *_this, const char *value, const char *value_end);
222
229
236
243
250
257
265
272
279
287
294
301
308
315
319
324
341MRC_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);
342
346
350
355
358
361
368
373
378
383
388
393
397
401
407MRC_API MR_VertRenumber *MR_VertRenumber_Construct(const MR_VertBitSet *validVerts, bool saveValidOnly);
408
411
414
421
425
430
435
444MRC_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);
445
453MRC_API const MR_VertCoords *MR_transformNormals(const MR_VertCoords *normals, const MR_VertBitSet *validVerts, const MR_Matrix3d *m, MR_VertCoords *buf);
454
455#ifdef __cplusplus
456} // extern "C"
457#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_VertCoords MR_VertCoords
std::vector<T>-like container that requires specific indexing type,
Definition MRAABBTreePoints.h:21
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:22
struct MR_VertColors MR_VertColors
std::vector<T>-like container that requires specific indexing type,
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
std::vector<T>-like container that requires specific indexing type,
Definition MRCtm.h:23
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 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)
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)
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 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 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)
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)
struct MR_VertRenumber MR_VertRenumber
Definition MRSaveSettings.h:43
MRC_API const MR_std_vector_MR_Color *const * MR_SaveSettings_Get_primitiveColors(const MR_SaveSettings *_this)
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 include/MRCMisc/exports.h:11
Definition MRAffineXf.h:47
Generated from class MR::Color.
Definition MRColor.h:18
Definition MRMatrix3.h:82
Generated from class MR::Vector3d.
Definition MRVector3.h:55
Generated from class MR::Vector3f.
Definition MRVector3.h:47
Definition MRId.h:42