MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshSave.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stdbool.h>
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
13typedef struct MR_SaveSettings MR_SaveSettings; // Defined in `#include <MRCMesh/MRSaveSettings.h>`.
14typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
15typedef struct MR_std_array_MR_Vector3f_3 MR_std_array_MR_Vector3f_3; // Defined in `#include <MRCMisc/std_array_MR_Vector3f_3.h>`.
16typedef struct MR_std_ostream MR_std_ostream; // Defined in `#include <MRCMisc/iostream.h>`.
17
18
22
31MRC_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);
32
40
48MRC_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);
49
57
65MRC_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);
66
73
80MRC_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);
81
89
98MRC_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);
99
107
119
123
127
130
133
139
145
154MRC_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);
155
163
171MRC_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);
172
180
188MRC_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);
189
197
205MRC_API MR_expected_void_std_string *MR_MeshSave_to3mf(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
206
214MRC_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);
215
225MRC_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);
226
227#ifdef __cplusplus
228} // extern "C"
229#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
A C++ output stream.
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:21
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_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)
#define MRC_API
Definition include/MRCMisc/exports.h:11
A fixed-size array of MR::Vector3f of size 3.
Definition std_array_MR_Vector3f_3.h:12