Subject: CGAL users discussion list
List archive
- From: Olivier Devillers <>
- To:
- Subject: Re: [cgal-discuss] Drawing of the Segment Voronoi Diagram
- Date: Wed, 20 Aug 2008 16:59:24 +0200
karine hins-mallet a écrit :
it looks like
Hi,
In the Polygon Delaunay Graph demo, there is a Drawing function which draws the Voronoï cells of the diagram. This is the code of the function:
typename T::Finite_edges_iterator eit = sdg.finite_edges_begin();
for (; eit != sdg.finite_edges_end(); ++eit) {
if ( eit->first->vertex( sdg.cw(eit->second) )->info() !=
eit->first->vertex( sdg.ccw(eit->second) )->info() ) {
{sdg.draw_dual_edge(*eit, widget);}
In that code, I understand that a test is performed on all the edges of the Delaunay graph, and that if the test succeeds then the dual Voronoï edge is drawn. But what I don’t understand is what is done (or checked) in the “if” test. Can someone explain it to me?
*eit is an edge (that is a pair of a face [triangle] and an index [to choose which edge in the triangle is the required edge])
the vertices of the triangulation have an extra information,
you draw only the Voronoi edges which are the dual of a Delaunay edge that links two vertices with different extra information.
- [cgal-discuss] Drawing of the Segment Voronoi Diagram, karine hins-mallet, 08/20/2008
- Re: [cgal-discuss] Drawing of the Segment Voronoi Diagram, Olivier Devillers, 08/20/2008
Archive powered by MHonArc 2.6.16.