Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] how to convert from General_Polygon to

Subject: CGAL users discussion list

List archive

[cgal-discuss] how to convert from General_Polygon to


Chronological Thread 
  • From: <>
  • To:
  • Subject: [cgal-discuss] how to convert from General_Polygon to
  • Date: Sun, 3 May 2009 23:33:24 +0200 (CEST)

Hi

I have a list of General_Polygons I want to convert to
Polygon_with_holes ,, I have tried a lot of things without luck
,,,,how to ?



I just want to Join them using

Polygon_set pgnset;

pgnset.join(ph.begin(),ph.end());

typedef below.

Best regards
kim

typedef Traits::Curve_2 Curve;
typedef Traits::X_monotone_curve_2 XCurve;
typedef Traits::Point_2 Circular_point_2;
typedef Traits::Polygon_2 Polygon_2;
typedef CGAL::General_polygon_2<Traits> General_Polygon;
typedef CGAL::General_polygon_2<Traits> P2;
typedef CGAL::General_polygon_with_holes_2<Polygon_2> Polygon_with_holes;
typedef CGAL::General_polygon_set_2<Traits> Polygon_set;



Archive powered by MHonArc 2.6.16.

Top of Page