38 const SaveSettings & settings = {},
int firstVertId = 1 );
40 const SaveSettings & settings = {},
int firstVertId = 1 );
71 const char *
comment =
"MeshInspector.com";
74#ifndef MRMESH_NO_OPENCTM
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::vector< IOFilter > IOFilters
Definition MRIOFilters.h:23
MRMESH_API VoidOrErrStr toObj(const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={}, int firstVertId=1)
MRMESH_API VoidOrErrStr toOff(const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
saves in .off file
MRMESH_API VoidOrErrStr toPly(const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
saves in .ply file
MRMESH_API VoidOrErrStr toBinaryStl(const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
MRMESH_API VoidOrErrStr toAsciiStl(const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
MRMESH_API VoidOrErrStr toAnySupportedFormat(const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
detects the format from file extension and save mesh to it
MRMESH_API VoidOrErrStr toCtm(const Mesh &mesh, const std::filesystem::path &file, const CtmSaveOptions options={})
saves in .ctm file
MRMESH_API VoidOrErrStr toMrmesh(const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
MRMESH_API const IOFilters Filters
Definition MRCameraOrientationPlugin.h:7
Expected< void > VoidOrErrStr
return type for a void function that can produce an error string
Definition MRExpected.h:60
Definition MRMesh/MRMeshSave.h:57
int compressionLevel
LZMA compression: 0 - minimal compression, but fast; 9 - maximal compression, but slow.
Definition MRMesh/MRMeshSave.h:69
const char * comment
comment saved in the file
Definition MRMesh/MRMeshSave.h:71
float vertexPrecision
Definition MRMesh/MRMeshSave.h:67
MeshCompression meshCompression
Definition MRMesh/MRMeshSave.h:64
MeshCompression
Definition MRMesh/MRMeshSave.h:59
@ None
no compression at all, fast but not effective
@ Lossless
compression without any loss in vertex coordinates
@ Lossy
compression with loss in vertex coordinates
Definition MRMesh/MRMesh.h:23
determines how to save points/lines/mesh
Definition MRSaveSettings.h:14