Subject: CGAL users discussion list
List archive
- From: Josip Dzolonga <>
- To:
- Subject: [cgal-discuss] Problems with removing points from a triangulation,Take 3
- Date: Sun, 15 Nov 2009 18:26:18 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=x2A30STMG08zhU4cpVP9K3uQnvaJWx8kRspnrVLvw/3uzfJMuWaYe0uTj4R/q6v6kg R+8SXQ08xm4IUllvHgfaPic3u3D94EtnVMSWA8RFyvidtMhhzKGGBvSgq1PIKvcWdvcS ks1AtIsrJN3tI8DETkU3tjMSjSLjWVIqH5QOA=
Hello everyone,
I am trying to remove some certain points from the Delaunay triangulation. I had some problems even before, and got some advice from here, but the problem still pertains. The problematic code follows
for(Finite_vertices_iterator vit = T.finite_vertices_begin();
vit != T.finite_vertices_end(); ++vit) {
if(seen.find(vit->point()) != seen.end()) {
seen.erase(vit->point());
T.remove(vit);
}
}
Where seen is of type std::set<Point> and has been already filled. Later on when I try to use the triangulation, I get the following error
CGAL error: assertion violation!
Expr: v == V[3]
File: /usr/include/CGAL/Triangulation_ds_cell_base_3.h
Line: 98
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Aborted
Which comes from the function int index(const Vertex_handle& v). I can not remove the same vertex twice, since I am iterating over the finite vertices and this is the only place where vertex removal is taking place. Any ideas would be highly appreciated!
Best,
Josip
- [cgal-discuss] Problems with removing points from a triangulation,Take 3, Josip Dzolonga, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Nico Kruithof, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Josip Dzolonga, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Nico Kruithof, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Andreas Fabri, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Josip Dzolonga, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Andreas Fabri, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Josip Dzolonga, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Sylvain Pion, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Andreas Fabri, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Josip Dzolonga, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Josip Dzolonga, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Andreas Fabri, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Josip Dzolonga, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Josip Dzolonga, 11/15/2009
- Re: [cgal-discuss] Problems with removing points from a triangulation,Take 3, Nico Kruithof, 11/15/2009
Archive powered by MHonArc 2.6.16.