mirror of https://github.com/CGAL/cgal
more small examples for degenerate meshes
This commit is contained in:
parent
4438c8651c
commit
81318a1cfd
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
OFF
|
||||
3 1 0
|
||||
0 0 0
|
||||
2 0 0
|
||||
1 0 0
|
||||
3 0 1 2
|
||||
|
|
@ -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
|
||||
|
||||
Loading…
Reference in New Issue