Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Inserting vertices into Voronoi Diagram

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Inserting vertices into Voronoi Diagram


Chronological Thread 
  • 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.




Archive powered by MHonArc 2.6.16.

Top of Page