MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshSave.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 <stdbool.h>
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
14typedef struct MR_SaveSettings MR_SaveSettings; // Defined in `#include <MRCMesh/MRSaveSettings.h>`.
15typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
16typedef struct MR_std_array_MR_Vector3f_3 MR_std_array_MR_Vector3f_3; // Defined in `#include <MRCMisc/std_array_MR_Vector3f_3.h>`.
17typedef struct MR_std_ostream MR_std_ostream; // Defined in `#include <MRCMisc/iostream.h>`.
18
19
24
33MRC_API MR_expected_void_std_string *MR_MeshSave_toMrmesh_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
34
42
50MRC_API MR_expected_void_std_string *MR_MeshSave_toOff_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
51
59
67MRC_API MR_expected_void_std_string *MR_MeshSave_toObj_4_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings, int firstVertId);
68
75
82MRC_API MR_expected_void_std_string *MR_MeshSave_toObj_3_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
83
91
100MRC_API MR_expected_void_std_string *MR_MeshSave_toBinaryStl_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
101
109
114
118
122
134
137
140
146
152
161MRC_API MR_expected_void_std_string *MR_MeshSave_toAsciiStl_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
162
170
178MRC_API MR_expected_void_std_string *MR_MeshSave_toPly_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
179
187
195MRC_API MR_expected_void_std_string *MR_MeshSave_toModel3mf_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
196
204
212MRC_API MR_expected_void_std_string *MR_MeshSave_to3mf(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
213
221MRC_API MR_expected_void_std_string *MR_MeshSave_toAnySupportedFormat_3(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
222
232MRC_API MR_expected_void_std_string *MR_MeshSave_toAnySupportedFormat_4(const MR_Mesh *mesh, const char *extension, const char *extension_end, MR_std_ostream *out, const MR_SaveSettings *settings);
233
234#ifdef __cplusplus
235} // extern "C"
236#endif
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:26
struct MR_Mesh MR_Mesh
Definition MRCtm.h:16
struct MR_SaveSettings MR_SaveSettings
Definition MRCtm.h:21
struct MR_std_ostream MR_std_ostream
Definition MRCtm.h:31
MRC_API const MR_MeshSave_BinaryStlSaver * MR_MeshSave_BinaryStlSaver_OffsetPtr(const MR_MeshSave_BinaryStlSaver *ptr, ptrdiff_t i)
struct MR_MeshSave_BinaryStlSaver MR_MeshSave_BinaryStlSaver
Definition MRMeshSave.h:23
MRC_API MR_expected_void_std_string * MR_MeshSave_toOff_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API MR_expected_void_std_string * MR_MeshSave_toMrmesh_std_ostream(const MR_Mesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings)
MRC_API MR_expected_void_std_string * MR_MeshSave_toObj_4_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings, int firstVertId)
MRC_API MR_expected_void_std_string * MR_MeshSave_toBinaryStl_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API MR_expected_void_std_string * MR_MeshSave_toModel3mf_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API MR_expected_void_std_string * MR_MeshSave_toObj_3_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API MR_expected_void_std_string * MR_MeshSave_toMrmesh_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API MR_MeshSave_BinaryStlSaver * MR_MeshSave_BinaryStlSaver_Construct(MR_std_ostream *out, const MR_SaveSettings *settings, const unsigned int *expectedNumTris)
MRC_API MR_expected_void_std_string * MR_MeshSave_toPly_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API MR_MeshSave_BinaryStlSaver * MR_MeshSave_BinaryStlSaver_OffsetMutablePtr(MR_MeshSave_BinaryStlSaver *ptr, ptrdiff_t i)
MRC_API MR_expected_void_std_string * MR_MeshSave_toAnySupportedFormat_3(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API MR_expected_void_std_string * MR_MeshSave_toPly_std_ostream(const MR_Mesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings)
MRC_API MR_expected_void_std_string * MR_MeshSave_toAsciiStl_std_filesystem_path(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API MR_expected_void_std_string * MR_MeshSave_to3mf(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API void MR_MeshSave_BinaryStlSaver_DestroyArray(const MR_MeshSave_BinaryStlSaver *_this)
Destroys a heap-allocated array of MR_MeshSave_BinaryStlSaver. Does nothing if the pointer is null.
MRC_API MR_expected_void_std_string * MR_MeshSave_toObj_4_std_ostream(const MR_Mesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings, int firstVertId)
MRC_API bool MR_MeshSave_BinaryStlSaver_updateHeadCounter(MR_MeshSave_BinaryStlSaver *_this)
MRC_API MR_expected_void_std_string * MR_MeshSave_toBinaryStl_std_ostream(const MR_Mesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings)
MRC_API MR_expected_void_std_string * MR_MeshSave_toOff_std_ostream(const MR_Mesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings)
MRC_API MR_expected_void_std_string * MR_MeshSave_toAsciiStl_std_ostream(const MR_Mesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings)
MRC_API void MR_MeshSave_BinaryStlSaver_Destroy(const MR_MeshSave_BinaryStlSaver *_this)
Destroys a heap-allocated instance of MR_MeshSave_BinaryStlSaver. Does nothing if the pointer is null...
MRC_API MR_expected_void_std_string * MR_MeshSave_toModel3mf_std_ostream(const MR_Mesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings)
MRC_API MR_MeshSave_BinaryStlSaver * MR_MeshSave_BinaryStlSaver_ConstructFromAnother(MR_PassBy _other_pass_by, MR_MeshSave_BinaryStlSaver *_other)
MRC_API MR_expected_void_std_string * MR_MeshSave_toObj_3_std_ostream(const MR_Mesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings)
MRC_API bool MR_MeshSave_BinaryStlSaver_writeTri(MR_MeshSave_BinaryStlSaver *_this, const MR_std_array_MR_Vector3f_3 *tri)
MRC_API MR_expected_void_std_string * MR_MeshSave_toAnySupportedFormat_4(const MR_Mesh *mesh, const char *extension, const char *extension_end, MR_std_ostream *out, const MR_SaveSettings *settings)
MR_PassBy
Definition common.h:23
#define MRC_API
Definition exports.h:11
A fixed-size array of MR::Vector3f of size 3.
Definition std_array_MR_Vector3f_3.h:12