Subject: CGAL users discussion list
List archive
- From: Camille Wormser <>
- To:
- Subject: Re: [cgal-discuss] the geometric information of a vertex...
- Date: Sat, 03 Nov 2007 19:47:24 +0100
wrote:
//That is the version which has no problem
Planar_Segment create_segments_TDS(Delaunay dt)
In fact, this version has a problem too, but you are just lucky. The function is provided a copy of the Delaunay triangulation, which will be discarded after the call. In particular, the vertex_handles extracted from this copy will then be meaningless.
In order to avoid this costly (and harmful in this case) copy, you should pass a reference to the Delaunay triangulation instead. In this case, it should even be a const reference, since you are just reading the triangulation:
Planar_Segment create_segments_TDS(const Delaunay& dt)
--
Camille
- the geometric information of a vertex..., novacheva, 11/03/2007
- Re: [cgal-discuss] the geometric information of a vertex..., Camille Wormser, 11/03/2007
Archive powered by MHonArc 2.6.16.