First checkin for OpenMesh 2.0
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@2 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
17
Doc/Examples/mesh_io.cc
Normal file
17
Doc/Examples/mesh_io.cc
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <OpenMesh/Core/IO/MeshIO.hh>
|
||||
|
||||
MyMesh mesh;
|
||||
|
||||
if (!OpenMesh::IO::read_mesh(mesh, "some input file"))
|
||||
{
|
||||
std::cerr << "read error\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// do something with your mesh ...
|
||||
|
||||
if (!OpenMesh::IO::write_mesh(mesh, "some output file"))
|
||||
{
|
||||
std::cerr << "write error\n";
|
||||
exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user