CGAL, Cropped voronoi diagram confined in a rectangle
I'm using CGAL with Qt to draw Voronoi diagram. I used CGAL::Voronoi_diagram_2<DT,AT,AP> since I need the faces. This is the example code: for(Face_iterator f = VD.faces_begin(); f != VD.faces_end(); f++) { Ccb_halfedge_circulator ec_start = (f)->ccb(); Ccb_halfedge_circulator ec = ec_start; do { if (!ec->has_source()) { } else QpolyF << QPointF(((Halfedge_handle)ec)->source()->point().x(), ((Halfedge_handle)ec)->source()->point().y()); } while ( ++ec != ec_start ); VectPolygon.push_back(QpolyF); QpolyF.clear();} I need to clip the rays that has source or target in infinity. If I use the