OMToolkit  1.0
The polygonal mesh processing tool.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OMIO.h
Go to the documentation of this file.
1 //==============================================================================
14 #ifndef _OM_IO_H_
15 #define _OM_IO_H_
16 
19 #include <OpenMesh\Core\IO\MeshIO.hh>
20 
21 namespace OMToolkit {
22 namespace IO {
23 
28 
38 template <class Mesh>
39 static bool writeMesh(Mesh &mesh, mds::mod::CChannel& channel, Options opt = Options::Default);
40 
51 template <class Mesh>
52  static bool writeMesh(Mesh &mesh, std::string filename, Options opt = Options::Default);
53 
65 template <class Mesh>
66  static bool writeMesh(Mesh &mesh, std::ostream& stream, std::string format, Options opt = Options::Default);
67 
76 template <class Mesh>
77  static bool readMesh(Mesh &mesh, mds::mod::CChannel& channel, Options& opt);
78 
87 template <class Mesh>
88  static bool readMesh(Mesh &mesh, std::string filename, Options& opt);
89 
99 template <class Mesh>
100  static bool readMesh(Mesh &mesh, std::istream& stream, std::string format, Options& opt);
101 
117 template <class Mesh, typename Scalar>
118  static bool exportVertices(Mesh &mesh, Scalar *output_array, bool normals = false);
119 
131 template <class Mesh>
132  static bool exportFaces(Mesh &mesh, int *output_array);
133 
147 template <class Mesh, typename Scalar>
148  static bool importVertices(Mesh &mesh, Scalar *input_array, int size, bool normals = false);
149 
160 template <class Mesh>
161  static bool importFaces(Mesh &mesh, int *input_array, int size);
162 
163 } // namespace IO
164 } // namespace OMToolkit
165 
166 #include <OMToolkit/IO\OMIO.hxx>
167 
168 #endif