MeshLib Documentation
Loading...
Searching...
No Matches
MR::MeshSave Namespace Reference

Classes

struct  CtmSaveOptions
 
struct  MeshSaver
 
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 > 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)
 

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& )

Function Documentation

◆ toCtm() [1/4]

MRIOEXTRAS_API Expected< void > MR::MeshSave::toCtm ( const Mesh & mesh,
const std::filesystem::path & file,
const CtmSaveOptions & options )

saves in .ctm file

◆ toCtm() [2/4]

MRIOEXTRAS_API Expected< void > MR::MeshSave::toCtm ( const Mesh & mesh,
const std::filesystem::path & file,
const SaveSettings & settings = {} )

◆ toCtm() [3/4]

MRIOEXTRAS_API Expected< void > MR::MeshSave::toCtm ( const Mesh & mesh,
std::ostream & out,
const CtmSaveOptions & options )

◆ toCtm() [4/4]

MRIOEXTRAS_API Expected< void > MR::MeshSave::toCtm ( const Mesh & mesh,
std::ostream & out,
const SaveSettings & settings = {} )