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
40
44
51
57
64
74
83
93
99
104
110
116
121
127
133
138
144
150
155
161
167
173MRC_API void MR_SaveSettings_Set_materialName(MR_SaveSettings *_this, const char *value, const char *value_end);
174
180
186
191
197
203
209
215
221
227
233
239
244
250
254
259
266MRC_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, 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);
267
270
273
278
282
287
291
295
298
301
306
311
316
321
326
330
333
336
341MRC_API MR_VertRenumber *MR_VertRenumber_Construct(const MR_VertBitSet *validVerts, bool saveValidOnly);
342
345
348
353
357
362
367
376MRC_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);
377
385MRC_API const MR_VertCoords *MR_transformNormals(const MR_VertCoords *normals, const MR_VertBitSet *validVerts, const MR_Matrix3d *m, MR_VertCoords *buf);
386
387#ifdef __cplusplus
388} // extern "C"
389#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:15
struct MR_VertCoords2 MR_VertCoords2
Definition MRChangeMeshAction.h:18
struct MR_SaveSettings MR_SaveSettings
Definition MRCtm.h:16
struct MR_PointsSave_CtmSavePointsOptions MR_PointsSave_CtmSavePointsOptions
Definition MRCtm.h:44
struct MR_MeshSave_CtmSaveOptions MR_MeshSave_CtmSaveOptions
Definition MRCtm.h:28
struct MR_VertColors MR_VertColors
Definition MRE57.h:16
struct MR_std_string MR_std_string
Definition MRE57.h:22
struct MR_std_vector_MR_Color MR_std_vector_MR_Color
Definition MRHeapBytes.h:15
struct MR_MeshTexture MR_MeshTexture
Definition MRImage.h:15
struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit
Definition MRLoadedObjects.h:13
struct MR_std_optional_MR_Color MR_std_optional_MR_Color
Definition MRPdf.h:20
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_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 MR_SaveSettings * MR_SaveSettings_ConstructFrom(bool onlyValidPoints, bool packPrimitives, const MR_VertColors *colors, const MR_std_vector_MR_Color *primitiveColors, const MR_VertCoords2 *uvMap, 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)
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 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 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:43
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)
MR_LengthUnit
Definition MRUnitInfo.h:22
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11
Definition MRAffineXf.h:44
Generated from class MR::Color.
Definition MRColor.h:18
Definition MRMatrix3.h:72
Definition MRVector3.h:59
Definition MRVector3.h:50
Definition MRId.h:55