diff options
author | Giles Bathgate <gilesbathgate@gmail.com> | 2011-04-09 16:53:19 (GMT) |
---|---|---|
committer | Giles Bathgate <gilesbathgate@gmail.com> | 2011-04-09 16:53:19 (GMT) |
commit | 5d5c745fdecd2580b5254cc1fd758bdc31ff88ba (patch) | |
tree | d3a6214069a48371b4a58f6ab0cf4fa47e4f1a77 /src/cgaladv_convexhull2.cc | |
parent | 5ef540054cc4a548a78eb78318e527f0e283ece8 (diff) |
Slight improvement. You no longer need an arbitary shape in the script for it to work.
See changes in testdata/scad/convex_hull.scad The square(2) was never
rendered it was just there because the hull is calculated when it
itterates onto the second child. I also removed the unneeded parameter.
Diffstat (limited to 'src/cgaladv_convexhull2.cc')
-rw-r--r-- | src/cgaladv_convexhull2.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgaladv_convexhull2.cc b/src/cgaladv_convexhull2.cc index 9505e44..1914954 100644 --- a/src/cgaladv_convexhull2.cc +++ b/src/cgaladv_convexhull2.cc @@ -29,7 +29,7 @@ #include "cgal.h" #include <CGAL/convex_hull_2.h> -extern CGAL_Nef_polyhedron2 convexhull2(CGAL_Nef_polyhedron2 a, CGAL_Nef_polyhedron2 b); +extern CGAL_Nef_polyhedron2 convexhull2(CGAL_Nef_polyhedron2 a); extern CGAL_Poly2 nef2p2(CGAL_Nef_polyhedron2 p); static std::list<CGAL_Nef_polyhedron2::Point> p2points(CGAL_Poly2 p2) @@ -44,7 +44,7 @@ static std::list<CGAL_Nef_polyhedron2::Point> p2points(CGAL_Poly2 p2) return points; } -CGAL_Nef_polyhedron2 convexhull2(CGAL_Nef_polyhedron2 a, CGAL_Nef_polyhedron2 b) +CGAL_Nef_polyhedron2 convexhull2(CGAL_Nef_polyhedron2 a) { CGAL_Poly2 ap = nef2p2(a); std::list<CGAL_Nef_polyhedron2::Point> points = p2points(ap), result; |