MeshLib Documentation
Loading...
Searching...
No Matches
MRMeshSave.h File Reference
#include "MRMeshFwd.h"
#include "MRExpected.h"
#include "MRIOFilters.h"
#include "MRSaveSettings.h"
#include <filesystem>
#include <ostream>

Go to the source code of this file.

Namespaces

namespace  MR
 
namespace  MR::MeshSave
 

Functions

MRMESH_API Expected< void > MR::MeshSave::toMrmesh (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::MeshSave::toMrmesh (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::MeshSave::toOff (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in .off file
 
MRMESH_API Expected< void > MR::MeshSave::toOff (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::MeshSave::toObj (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings, int firstVertId)
 
MRMESH_API Expected< void > MR::MeshSave::toObj (const Mesh &mesh, std::ostream &out, const SaveSettings &settings, int firstVertId)
 
MRMESH_API Expected< void > MR::MeshSave::toObj (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::MeshSave::toObj (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::MeshSave::toBinaryStl (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::MeshSave::toBinaryStl (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::MeshSave::toAsciiStl (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::MeshSave::toAsciiStl (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::MeshSave::toPly (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in .ply file
 
MRMESH_API Expected< void > MR::MeshSave::toPly (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::MeshSave::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 Expected< void > MR::MeshSave::toAnySupportedFormat (const Mesh &mesh, const std::string &extension, std::ostream &out, const SaveSettings &settings={})
 extension in *.ext format