Just editing the line and fix identation.

This commit is contained in:
Ester Ezra 2002-08-21 15:43:55 +00:00
parent 83588be687
commit 10bac0e1b1
1 changed files with 18 additions and 14 deletions

View File

@ -30,10 +30,12 @@
CGAL_BEGIN_NAMESPACE
template <class Planar_map_, class Polygon_>
class Polygons_from_faces{
class Polygons_from_faces
{
public:
typedef Planar_map_ Planar_map;
typedef Polygon_ Polygon;
//typedef typename Polygon::Point_2 Point;
//typedef typename Planar_map::Face_const_iterator Face_const_iterator;
template <class InputIterator, class OutputIterator>
@ -46,20 +48,22 @@ public:
Polygon poly;
for (f_iter = faces_begin; f_iter != faces_end; ++f_iter) {
for (f_iter = faces_begin; f_iter != faces_end; ++f_iter)
{
if (f_iter->is_unbounded() || f_iter->in_hole())
continue;
poly.erase(poly.vertices_begin(), poly.vertices_end());
typename Planar_map::Ccb_halfedge_circulator
cc=f_iter->outer_ccb();
do
{
poly.push_back(cc->source()->point());
} while (++cc != f_iter->outer_ccb());
if (f_iter->is_unbounded() || f_iter->in_hole())
continue;
poly.erase(poly.vertices_begin(), poly.vertices_end());
typename Planar_map::Ccb_halfedge_circulator
cc=f_iter->outer_ccb();
do {
poly.push_back(cc->source()->point());
} while (++cc != f_iter->outer_ccb());
*polygons++ = poly;
}
*polygons++ = poly;
}
}
};