more small examples for degenerate meshes

This commit is contained in:
Andreas Fabri 2015-05-13 09:29:39 +02:00
parent 4438c8651c
commit 81318a1cfd
6 changed files with 46 additions and 2 deletions

View File

@ -25,6 +25,7 @@ int main(int argc, char* argv[])
= CGAL::Polygon_mesh_processing::remove_degenerate_faces(mesh);
std::cout << "There were " << nb << " degenerate faces in this mesh" << std::endl;
mesh.collect_garbage();
std::cout << mesh << std::endl;
return 0;
}

View File

@ -28,6 +28,8 @@ int main(int argc, char* argv[])
geom_traits(K()));
std::cout << "There were " << nb << " degenerate faces in this mesh" << std::endl;
mesh.garbage_collection();
OpenMesh::IO::write_mesh(mesh, "repaired.off");
return 0;
}

View File

@ -0,0 +1,13 @@
OFF
6 4 0
0 0 0
2 0 0
1 0 0
0 1 0
2 1 0
1 -1 0
3 0 1 2
3 0 2 3
3 2 1 4
3 1 0 5

View File

@ -0,0 +1,11 @@
OFF
5 4 0
0 0 0
2 0 0
1 0 0
0 1 0
2 1 0
3 0 1 2
3 0 2 3
3 2 1 4
3 3 2 4

View File

@ -0,0 +1,6 @@
OFF
3 1 0
0 0 0
2 0 0
1 0 0
3 0 1 2

View File

@ -0,0 +1,11 @@
OFF
5 3 0
0 0 0
2 0 0
1 0 0
0 1 0
2 1 0
3 0 1 2
3 0 2 3
3 2 1 4