MeshLib C Docs
Loading...
Searching...
No Matches
MRSaveSettings.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRId.h>
4#include <MRCMesh/MRVector3.h>
5#include <MRCMisc/common.h>
6#include <MRCMisc/exports.h>
7
8#include <stdbool.h>
9#include <stddef.h>
10#include <stdint.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct MR_AffineXf3d MR_AffineXf3d; // Defined in `#include <MRCMesh/MRAffineXf.h>`.
17typedef struct MR_Matrix3d MR_Matrix3d; // Defined in `#include <MRCMesh/MRMatrix3.h>`.
18typedef struct MR_MeshSave_CtmSaveOptions MR_MeshSave_CtmSaveOptions; // Defined in `#include <MRCIOExtras/MRCtm.h>`.
19typedef struct MR_MeshTexture MR_MeshTexture; // Defined in `#include <MRCMesh/MRMeshTexture.h>`.
20typedef struct MR_PointsSave_CtmSavePointsOptions MR_PointsSave_CtmSavePointsOptions; // Defined in `#include <MRCIOExtras/MRCtm.h>`.
21typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
22typedef struct MR_VertColors MR_VertColors; // Defined in `#include <MRCMesh/MRVector.h>`.
23typedef struct MR_VertCoords MR_VertCoords; // Defined in `#include <MRCMesh/MRVector.h>`.
24typedef struct MR_VertCoords2 MR_VertCoords2; // Defined in `#include <MRCMesh/MRVector.h>`.
25typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
26typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
27
28
36
40
47
53
60
70
79
89
95
100
106
112
117
123
129
134
140
146
152MRC_API void MR_SaveSettings_Set_materialName(MR_SaveSettings *_this, const char *value, const char *value_end);
153
159
165
170
176
182
187
193
197
202
207MRC_API MR_SaveSettings *MR_SaveSettings_ConstructFrom(bool onlyValidPoints, bool packPrimitives, const MR_VertColors *colors, const MR_VertCoords2 *uvMap, const MR_MeshTexture *texture, const char *materialName, const char *materialName_end, const MR_AffineXf3d *xf, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress);
208
211
214
219
223
228
232
236
239
242
247
252
257
262
267
271
274
277
282MRC_API MR_VertRenumber *MR_VertRenumber_Construct(const MR_VertBitSet *validVerts, bool saveValidOnly);
283
286
289
294
298
303
308
317MRC_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);
318
326MRC_API const MR_VertCoords *MR_transformNormals(const MR_VertCoords *normals, const MR_VertBitSet *validVerts, const MR_Matrix3d *m, MR_VertCoords *buf);
327
328#ifdef __cplusplus
329} // extern "C"
330#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:22
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:17
struct MR_PointsSave_CtmSavePointsOptions MR_PointsSave_CtmSavePointsOptions
Definition MRCtm.h:46
struct MR_MeshSave_CtmSaveOptions MR_MeshSave_CtmSaveOptions
Definition MRCtm.h:29
struct MR_VertColors MR_VertColors
Definition MRE57.h:16
struct MR_std_string MR_std_string
Definition MRE57.h:22
struct MR_MeshTexture MR_MeshTexture
Definition MRImage.h:15
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 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 int32_t MR_VertRenumber_call(const MR_VertRenumber *_this, MR_VertId v)
MRC_API int32_t MR_VertRenumber_sizeVerts(const MR_VertRenumber *_this)
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 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 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_SaveSettings * MR_SaveSettings_ConstructFrom(bool onlyValidPoints, bool packPrimitives, const MR_VertColors *colors, const MR_VertCoords2 *uvMap, const MR_MeshTexture *texture, const char *materialName, const char *materialName_end, const MR_AffineXf3d *xf, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
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 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 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 bool * MR_SaveSettings_GetMutable_packPrimitives(MR_SaveSettings *_this)
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 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_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:39
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_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11
Definition MRAffineXf.h:44
Definition MRMatrix3.h:71
Definition MRVector3.h:60
Definition MRVector3.h:51
Definition MRId.h:56