MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::MeshSave Namespace Reference

namespace MeshLoad More...

Classes

class  BinaryStlSaver
 saver in binary .stl format that can write triangles one by one not knowing their number beforehand More...
 
struct  CtmSaveOptions
 
struct  MeshSaver
 
struct  MeshSaverCapabilities
 describes optional abilities of a MeshSaver More...
 
struct  NamedXfMesh
 saves a number of named meshes in .obj file More...
 

Typedefs

using MeshFileSaver = Expected<void>( * )( const Mesh&, const std::filesystem::path&, const SaveSettings& )
 
using MeshStreamSaver = Expected<void>( * )( const Mesh&, std::ostream&, const SaveSettings& )
 

Functions

MRIOEXTRAS_API Expected< void > toCtm (const Mesh &mesh, const std::filesystem::path &file, const CtmSaveOptions &options)
 saves in .ctm file
 
MRIOEXTRAS_API Expected< void > toCtm (const Mesh &mesh, std::ostream &out, const CtmSaveOptions &options)
 
MRIOEXTRAS_API Expected< void > toCtm (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRIOEXTRAS_API Expected< void > toCtm (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toMrmesh (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toMrmesh (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toOff (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in .off file
 
MRMESH_API Expected< void > toOff (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toObj (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings, int firstVertId)
 
MRMESH_API Expected< void > toObj (const Mesh &mesh, std::ostream &out, const SaveSettings &settings, int firstVertId)
 
MRMESH_API Expected< void > toObj (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toObj (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toBinaryStl (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toBinaryStl (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toAsciiStl (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toAsciiStl (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toPly (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in .ply file
 
MRMESH_API Expected< void > toPly (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toModel3mf (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in 3mf .model file
 
MRMESH_API Expected< void > toModel3mf (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > to3mf (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in .3mf file
 
MRMESH_API Expected< void > 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 > toAnySupportedFormat (const Mesh &mesh, const std::string &extension, std::ostream &out, const SaveSettings &settings={})
 extension in *.ext format
 
MRMESH_API Expected< void > sceneToObj (const std::vector< NamedXfMesh > &objects, const std::filesystem::path &file, VertColors *colors=nullptr)
 
MRMESH_API Expected< void > sceneToObj (const std::vector< NamedXfMesh > &objects, std::ostream &out, VertColors *colors=nullptr)
 

Detailed Description

namespace MeshLoad

Typedef Documentation

◆ MeshFileSaver

using MR::MeshSave::MeshFileSaver = Expected<void>( * )( const Mesh&, const std::filesystem::path&, const SaveSettings& )

◆ MeshStreamSaver

using MR::MeshSave::MeshStreamSaver = Expected<void>( * )( const Mesh&, std::ostream&, const SaveSettings& )