Subject: CGAL users discussion list
List archive
- From: cnng0315 <>
- To:
- Subject: [cgal-discuss] after delete_face from Delaunay, crash
- Date: Thu, 20 Sep 2012 02:32:32 -0700 (PDT)
I have a Delaunay, and want to delete some face in it. but when I do other
operations on this Delaunay, it crashes.
std::list<Delaunay::Face_handle> lstFaces;
for (Delaunay::Finite_faces_iterator fit =
dt.finite_faces_begin(); fit !=
dt.finite_faces_end(); fit ++)
{
/// check the face has small angle
if (hasSmallAngle(fit))
{
lstFaces.push_back(fit);
}
}
std::list<Delaunay::Face_handle>::iterator iterS =
lstFaces.begin();
for (;iterS!=lstFaces.end();++iterS)
{
dt.delete_face(*iterS);
}
after executing the codes above , I do the following:
Delaunay::Vertex_handle cw = hNextFace->vertex(dt.cw(i));
Delaunay::Vertex_handle cww =
hNextFace->vertex(dt.ccw(i));
if (!dt.is_edge(cw,cww))
/*// crash here*/
{
continue;
}
-----
technology change life!
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/after-delete-face-from-Delaunay-crash-tp4655880.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] after delete_face from Delaunay, crash, cnng0315, 09/20/2012
- Re: [cgal-discuss] after delete_face from Delaunay, crash, Olivier Devillers, 09/20/2012
Archive powered by MHonArc 2.6.18.