Skip to Content.
Sympa Menu

cgal-discuss - Re: Cannot access to Polygon_2 points

Subject: CGAL users discussion list

List archive

Re: Cannot access to Polygon_2 points


Chronological Thread 
  • From:
  • To:
  • Subject: Re: Cannot access to Polygon_2 points
  • Date: Fri, 11 May 2007 03:04:00 +0200

Ok i have founded the Vertex_iterator to access the vertex of the Polygon


Vertex_iterator vertit;

vertit = polygon.vertices_begin ();
double x1 = vertit->x();
double x2 = vertit->y();


but the manual say into Polygon_2

Point_2 pgn [ int i] Returns a (const) reference to the
i-th vertex.

so i don' t find any error on using

debug = polygon[0]



Archive powered by MHonArc 2.6.16.

Top of Page