Subject: CGAL users discussion list
List archive
- From: Bernd Gaertner <>
- To: <>
- Subject: Re: [cgal-discuss] Inserting vertices into Voronoi Diagram
- Date: Mon, 23 Nov 2009 13:03:55 +0100
wrote:
for (vit = this->vertices_begin(); vit != this->vertices_end(); ++vit) {
vv.push_back(*vit);
}
this->clear();
for (unsigned int i = 0; i < vv.size(); i++) {
p = Point_2(vv[i].point().x(), vv[i].point().y());
My guess is that the clear operation invalidates the vertices. You may try to store the *points* directly and not the vertices in vv.
Bernd.
- [cgal-discuss] Inserting vertices into Voronoi Diagram, chernysh, 11/23/2009
- Re: [cgal-discuss] Inserting vertices into Voronoi Diagram, chernysh, 11/23/2009
- Re: [cgal-discuss] Inserting vertices into Voronoi Diagram, Daniel Duque, 11/23/2009
- Re: [cgal-discuss] Inserting vertices into Voronoi Diagram, Bernd Gaertner, 11/23/2009
- Re: Re: [cgal-discuss] Inserting vertices into Voronoi Diagram, chernysh, 11/23/2009
- Re: [cgal-discuss] Inserting vertices into Voronoi Diagram, Sylvain Pion, 11/23/2009
Archive powered by MHonArc 2.6.16.