document remove_degenerate_faces

This commit is contained in:
Jane Tournois 2015-04-01 16:41:49 +02:00
parent 8f595e6e14
commit e4ba8b4c47
2 changed files with 20 additions and 1 deletions

View File

@ -225,7 +225,22 @@ has duplicated border edges.
\cgalExample{Polygon_mesh_processing/stitch_borders_example.cpp}
*******************
\subsection DegenerateFaces Remove degenerate faces
\subsection DegenerateFaces Degenerate faces removal
Some degenerate faces may be part of a given triangle mesh.
A face is considered \e degenerate if two of its vertices are the same,
or if its three vertices are collinear.
The function
`CGAL::Polygon_mesh_processing::remove_degenerate_faces()` is able
to remove those faces and to fix the connectivity of the newly cleaned up mesh.
\subsubsection RemoveDegenerateExample Example
In the following example, the degenerate faces of a simple mesh containing
some are removed, the connectivity is fixed, and the number of removed faces
is displayed.
\cgalExample{Polygon_mesh_processing/remove_degeneracies_example.cpp}
*******************

View File

@ -266,6 +266,10 @@ std::size_t remove_degenerate_faces(TriangleMesh& tmesh,
{
CGAL_assertion(CGAL::is_pure_triangle(tmesh));
using boost::choose_const_pmap;
using boost::get_param;
using boost::choose_param;
typedef TriangleMesh TM;
typedef typename boost::graph_traits<TriangleMesh> GT;
typedef typename GT::edge_descriptor edge_descriptor;