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);
123 template <
class Mesh>
126 const std::string& _filename,
130 if (_clear) _mesh.clear();
155 template <
class Mesh>
159 const std::string& _ext,
163 if (_clear) _mesh.clear();
189 template <
class Mesh>
191 const std::string& _filename,
193 std::streamsize _precision = 6)
221 template <
class Mesh>
224 const std::string& _ext,
226 std::streamsize _precision = 6)
250 template <
class Mesh>
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> size_t binary_size(const Mesh &_mesh, const std::string &_ext, Options _opt=Options::Default)
Get binary size of data.
bool read(const std::string &_filename, BaseImporter &_bi, Options &_opt)
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.
bool write(const std::string &_filename, BaseExporter &_be, Options _opt=Options::Default, std::streamsize _precision=6)
bool read_mesh(Mesh &_mesh, const std::string &_filename)
Read a mesh from file _filename.
Set options for reader/writer modules.
_IOManager_ & IOManager()