Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Triangulation: point is not inserted
- Date: Tue, 30 Jun 2009 11:18:13 +0200
Daniel Duque wrote:
On Tuesday 30 June 2009 10:56:49 gtsml owevwr wrote:
Thanks for your answers,
I agree, it is desirable, but I also have to admit it that not being
aware of it have cost me 4 hours of desperate debugging :-(
But, it is documented:
Vertex_handle t.insert ( Point p, Face_handle f = Face_handle())
Inserts point p in the triangulation and returns the
corresponding vertex.
If point p coincides with an already existing vertex, this vertex is returned and the triangulation remains unchanged. ...
http://www.cgal.org/Manual/3.4/doc_html/cgal_manual/Triangulation_2_ref/Class_Triangulation_2.html
Best,
Daniel
Note that you can detect this by performing a locate first, check the
Locate_type
and then insert if necessary. This is not slower than just inserting.
andreas
- [cgal-discuss] Triangulation: point is not inserted, gtsml owevwr, 06/29/2009
- Re: [cgal-discuss] Triangulation: point is not inserted, Sylvain Pion, 06/29/2009
- Re: [cgal-discuss] Triangulation: point is not inserted, Damian Sheehy, 06/29/2009
- Re: [cgal-discuss] Triangulation: point is not inserted, gtsml owevwr, 06/30/2009
- Re: [cgal-discuss] Triangulation: point is not inserted, Daniel Duque, 06/30/2009
- Re: [cgal-discuss] Triangulation: point is not inserted, Andreas Fabri, 06/30/2009
- Re: [cgal-discuss] Triangulation: point is not inserted, Camille Wormser, 06/30/2009
- Re: [cgal-discuss] Triangulation: point is not inserted, Andreas Fabri, 06/30/2009
- Re: [cgal-discuss] Triangulation: point is not inserted, Daniel Duque, 06/30/2009
- Re: [cgal-discuss] Triangulation: point is not inserted, gtsml owevwr, 06/30/2009
Archive powered by MHonArc 2.6.16.