diff options
author | Marius Kintel <marius@kintel.net> | 2011-04-10 23:47:06 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-04-10 23:47:06 (GMT) |
commit | 06cc8b1d585e03d47dfb20014c5281c43d806f1b (patch) | |
tree | 5ad748d5d638daeb4bc5b2b43991958d2ca445d5 /src/cgaladv_convexhull2.cc | |
parent | 6cce430eed9910d9cf84e220ed96479dd7167d4f (diff) |
indentation
Diffstat (limited to 'src/cgaladv_convexhull2.cc')
-rw-r--r-- | src/cgaladv_convexhull2.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cgaladv_convexhull2.cc b/src/cgaladv_convexhull2.cc index e1e466d..448dd4b 100644 --- a/src/cgaladv_convexhull2.cc +++ b/src/cgaladv_convexhull2.cc @@ -34,22 +34,22 @@ extern CGAL_Poly2 nef2p2(CGAL_Nef_polyhedron2 p); CGAL_Nef_polyhedron2 convexhull2(std::list<CGAL_Nef_polyhedron2> a) { - std::list<CGAL_Nef_polyhedron2::Point> points; + std::list<CGAL_Nef_polyhedron2::Point> points; - std::list<CGAL_Nef_polyhedron2>::iterator i; - for(i=a.begin(); i!=a.end(); i++) { - CGAL_Poly2 ap=nef2p2(*i); - for (int j=0;j<ap.size();j++) { + std::list<CGAL_Nef_polyhedron2>::iterator i; + for (i=a.begin(); i!=a.end(); i++) { + CGAL_Poly2 ap=nef2p2(*i); + for (size_t j=0;j<ap.size();j++) { double x=to_double(ap[j].x()),y=to_double(ap[j].y()); CGAL_Nef_polyhedron2::Point p=CGAL_Nef_polyhedron2::Point(x,y); points.push_back(p); + } } - } - std::list<CGAL_Nef_polyhedron2::Point> result; - CGAL::convex_hull_2(points.begin(),points.end(),std::back_inserter(result)); + std::list<CGAL_Nef_polyhedron2::Point> result; + CGAL::convex_hull_2(points.begin(),points.end(),std::back_inserter(result)); - return CGAL_Nef_polyhedron2(result.begin(),result.end(),CGAL_Nef_polyhedron2::INCLUDED); + return CGAL_Nef_polyhedron2(result.begin(),result.end(),CGAL_Nef_polyhedron2::INCLUDED); } #endif |