Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] How to draw General Polygon_2

Subject: CGAL users discussion list

List archive

[cgal-discuss] How to draw General Polygon_2


Chronological Thread 
  • From: "alex" <>
  • To: <>
  • Subject: [cgal-discuss] How to draw General Polygon_2
  • Date: Wed, 30 Sep 2009 10:43:55 +0530

Hi

I am trying to use circle_segment example in CGAL of intersection_2 . I want to draw final result to openGL but i can't find the way. I tried lot of way but still no idea how to implement it. I also looked at QT code but no luck. I donot want to use QT because i want to render it my own OpenGL code. Here is code of example.

// Insert four non-intersecting circles.

Polygon_set_2 S;

Polygon_2 circ1, circ2,;

circ1 = construct_polygon(Circle_2(Point_2(1, 1), 1)); S.insert(circ1);

circ2 = construct_polygon(Circle_2(Point_2(5, 1), 1)); S.insert(circ2);

// Print the output.

std::list<Polygon_with_holes_2> res;

S.polygons_with_holes (std::back_inserter (res));



I want to draw final result given by polygons_wit_holes. How can i do that ?








Archive powered by MHonArc 2.6.16.

Top of Page