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_TriMesh MR_TriMesh; // Defined in `#include <MRCMesh/MRTriMesh.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
23
32MRC_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);
33
41
49MRC_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);
50
58
66MRC_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);
67
74
81MRC_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);
82
90
99MRC_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);
100
108
120
124
128
131
134
140
146
155MRC_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);
156
164
173
181
191
199
207MRC_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);
208
216
224MRC_API MR_expected_void_std_string *MR_MeshSave_to3mf(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings);
225
233MRC_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);
234
244MRC_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);
245
246#ifdef __cplusplus
247} // extern "C"
248#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 MR_expected_void_std_string * MR_MeshSave_toPly_const_MR_Mesh_ref_std_ostream(const MR_Mesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings)
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:22
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_toPly_const_MR_TriMesh_ref_std_filesystem_path(const MR_TriMesh *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_toPly_const_MR_Mesh_ref_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_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_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_toPly_const_MR_TriMesh_ref_std_ostream(const MR_TriMesh *mesh, MR_std_ostream *out, const MR_SaveSettings *settings)
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)
struct MR_TriMesh MR_TriMesh
Definition MRMesh.h:36
#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