50 #include <OpenMesh/Core/System/config.h>
52 #if defined (OPENMESH_TRIMESH_ARRAY_KERNEL_HH) || \
53 defined (OPENMESH_POLYMESH_ARRAY_KERNEL_HH)
54 # error "Include MeshIO.hh before including a mesh type!"
57 #include <OpenMesh/Core/IO/SR_store.hh>
58 #include <OpenMesh/Core/IO/IOManager.hh>
59 #include <OpenMesh/Core/IO/importer/ImporterT.hh>
60 #include <OpenMesh/Core/IO/exporter/ExporterT.hh>
100 const std::string& _filename,
104 return read_mesh(_mesh, _filename, opt, _clear);
125 template <
class Mesh>
128 const std::string& _filename,
132 if (_clear) _mesh.clear();
134 return IOManager().
read(_filename, importer, _opt);
157 template <
class Mesh>
161 const std::string& _ext,
165 if (_clear) _mesh.clear();
167 return IOManager().
read(_is,_ext, importer, _opt);
191 template <
class Mesh>
193 const std::string& _filename,
195 std::streamsize _precision = 6)
198 return IOManager().
write(_filename, exporter, _opt, _precision);
223 template <
class Mesh>
226 const std::string& _ext,
228 std::streamsize _precision = 6)
231 return IOManager().
write(_os,_ext, exporter, _opt, _precision);
252 template <
class Mesh>
254 const std::string& _ext,
258 return IOManager().binary_size(_ext, exporter, _opt);
271 #if defined(OM_STATIC_BUILD) || defined(ARCH_DARWIN)
272 # include <OpenMesh/Core/IO/IOInstances.hh>