Subject: CGAL users discussion list
List archive
- From: Ben Supnik <>
- To:
- Subject: [cgal-discuss] Possible bug in polyline_constrained_triangulation_2.h
- Date: Sat, 29 Aug 2009 16:17:06 -0400
Hi Y'all,
If I insert a poly-line with one segment (two vertices) into an empty PCT I get a precondition violation.
Here's what's going on: PCT::insert_incident_faces is being used to gather the incident faces to the poly_line. It does this by circulating each vertex of the constraint polyline.
But...if the dimension of the triangalation is 1 (which is the case now since we've inserted 2 points) the incident_faces circulator for some reason intentionally sets it's face handle to null, which causes circulation to blow up.
I haven't found any indication of why the circulator is written that way...from what I can tell, circulators around vertices in triangulations do return non-finite faces, and in a 1-d triangulation we should have a few non-finite faces around each vertex.
Ironically the code that is failing is being called with an empty output iterator...that is, the faces we are failing to collect were going to be thrown out anyay. :-)
cheers
ben
--
Scenery Home Page: http://scenery.x-plane.com/
Scenery blog: http://xplanescenery.blogspot.com/
Plugin SDK: http://www.xsquawkbox.net/xpsdk/
X-Plane Wiki: http://wiki.x-plane.com/
Scenery mailing list:
Developer mailing list:
- [cgal-discuss] Possible bug in polyline_constrained_triangulation_2.h, Ben Supnik, 08/29/2009
Archive powered by MHonArc 2.6.16.