From 7f532ce615c2367f5182f036cf3887442535cf15 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Mon, 3 Sep 2012 21:27:40 +0200 Subject: [PATCH] Add cgal helper function for tesselation --- src/Lib/Geometry/poly_cgal.cxx | 6 ++++++ src/Lib/Geometry/poly_support.hxx | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/Lib/Geometry/poly_cgal.cxx b/src/Lib/Geometry/poly_cgal.cxx index b5be6bee..19633fe1 100644 --- a/src/Lib/Geometry/poly_cgal.cxx +++ b/src/Lib/Geometry/poly_cgal.cxx @@ -157,3 +157,9 @@ TGPolygon polygon_tesselate_alt_with_extra_cgal( TGPolygon &p, const point_list& return result; } + +TGPolygon polygon_tesselate_alt_cgal( TGPolygon &p, bool verbose ) { + + point_list pl; pl.clear(); + return ( polygon_tesselate_alt_with_extra_cgal(p, pl, verbose) ); +} diff --git a/src/Lib/Geometry/poly_support.hxx b/src/Lib/Geometry/poly_support.hxx index b2fb1715..675570eb 100644 --- a/src/Lib/Geometry/poly_support.hxx +++ b/src/Lib/Geometry/poly_support.hxx @@ -72,6 +72,8 @@ TGPolygon polygon_tesselate_alt_with_extra( TGPolygon &p, TGPolygon polygon_tesselate_alt_with_extra_cgal( TGPolygon &p, const point_list &extra_nodes, bool verbose ); +TGPolygon polygon_tesselate_alt_cgal( TGPolygon &p, bool verbose ); + // calculate some "arbitrary" point inside each of the polygons contours void calc_points_inside( TGPolygon& p );