Developer Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
mesh_io.cc
1
#include <OpenMesh/Core/IO/MeshIO.hh>
2
3
MyMesh
mesh;
4
5
if
(!
OpenMesh::IO::read_mesh
(mesh,
"some input file"
))
6
{
7
std::cerr <<
"read error\n"
;
8
exit(1);
9
}
10
11
// do something with your mesh ...
12
13
if
(!
OpenMesh::IO::write_mesh
(mesh,
"some output file"
))
14
{
15
std::cerr <<
"write error\n"
;
16
exit(1);
17
}
OpenMesh::IO::read_mesh
bool read_mesh(Mesh &_mesh, const std::string &_filename)
Read a mesh from file _filename.
Definition:
MeshIO.hh:104
OpenMesh::TriMesh_ArrayKernelT
Definition:
TriMesh_ArrayKernelT.hh:98
OpenMesh::IO::write_mesh
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.
Definition:
MeshIO.hh:199
libs_required
OpenMesh
Doc
Examples
mesh_io.cc
Generated on Wed Oct 12 2016 12:27:45 for Developer Documentation by
1.8.11