55#include <OpenMesh/Core/IO/SR_store.hh>
56#include <OpenMesh/Core/IO/IOManager.hh>
57#include <OpenMesh/Core/IO/importer/ImporterT.hh>
58#include <OpenMesh/Core/IO/exporter/ExporterT.hh>
96 const std::string& _filename)
99 return read_mesh(_mesh, _filename, opt,
true);
126 const std::string& _filename,
130 if (_clear) _mesh.clear();
159 const std::string& _ext,
163 if (_clear) _mesh.clear();
191 const std::string& _filename,
193 std::streamsize _precision = 6)
224 const std::string& _ext,
226 std::streamsize _precision = 6)
252 const std::string& _ext,
256 return IOManager().binary_size(_ext, exporter, _opt);
269#if defined(OM_STATIC_BUILD) || defined(ARCH_DARWIN)
270# include <OpenMesh/Core/IO/IOInstances.hh>
Set options for reader/writer modules.
@ Default
By default write persistent custom properties.
bool write(const std::string &_filename, BaseExporter &_be, Options _opt=Options::Default, std::streamsize _precision=6)
bool read(const std::string &_filename, BaseImporter &_bi, Options &_opt)
size_t binary_size(const Mesh &_mesh, const std::string &_ext, Options _opt=Options::Default)
Get binary size of data.
bool write_mesh(const Mesh &_mesh, const std::string &_filename, Options _opt=Options::Default, std::streamsize _precision=6)
Write a mesh to the file _filename.
_IOManager_ & IOManager()
bool read_mesh(Mesh &_mesh, const std::string &_filename)
Read a mesh from file _filename.