MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshSave.h File Reference
#include "MRMeshFwd.h"
#include "MRExpected.h"
#include "MRIOFilters.h"
#include "MRSaveSettings.h"
#include <filesystem>
#include <iosfwd>

Go to the source code of this file.

Classes

class  MR::MeshSave::BinaryStlSaver
 saver in binary .stl format that can write triangles one by one not knowing their number beforehand More...

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
namespace  MR::MeshSave

Functions

Expected< void > MR::MeshSave::toMrmesh (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toMrmesh (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toOff (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in .off file
Expected< void > MR::MeshSave::toOff (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toOff (const TriMesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toOff (const TriMesh &mesh, std::ostream &out, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toObj (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings, int firstVertId)
Expected< void > MR::MeshSave::toObj (const Mesh &mesh, std::ostream &out, const SaveSettings &settings, int firstVertId)
Expected< void > MR::MeshSave::toObj (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toObj (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toObj (const TriMesh &mesh, const std::filesystem::path &file, const SaveSettings &settings, int firstVertId, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toObj (const TriMesh &mesh, std::ostream &out, const SaveSettings &settings, int firstVertId, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toObj (const TriMesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toObj (const TriMesh &mesh, std::ostream &out, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toBinaryStl (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toBinaryStl (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toBinaryStl (const TriMesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
 if region is given, only its triangles are saved; region must not have bits beyond TriMesh::tris
Expected< void > MR::MeshSave::toBinaryStl (const TriMesh &mesh, std::ostream &out, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toAsciiStl (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toAsciiStl (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toAsciiStl (const TriMesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
 if region is given, only its triangles are saved; region must not have bits beyond TriMesh::tris
Expected< void > MR::MeshSave::toAsciiStl (const TriMesh &mesh, std::ostream &out, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toPly (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in .ply file
Expected< void > MR::MeshSave::toPly (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toPly (const TriMesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toPly (const TriMesh &mesh, std::ostream &out, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toModel3mf (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in 3mf .model file
Expected< void > MR::MeshSave::toModel3mf (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toModel3mf (const TriMesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::toModel3mf (const TriMesh &mesh, std::ostream &out, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
Expected< void > MR::MeshSave::to3mf (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in .3mf file
Expected< void > MR::MeshSave::to3mf (const TriMesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={}, const FaceBitSet *region=nullptr)
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
Expected< void > MR::MeshSave::toAnySupportedFormat (const Mesh &mesh, const std::string &extension, std::ostream &out, const SaveSettings &settings={})
 extension in *.ext format