Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] constrained delaunay triangulation and vertex info
- Date: Mon, 28 May 2012 08:29:09 +0200
On 05/26/2012 05:53 PM, Cristobal Navarro wrote:
HelloYou can use a vertex type with info but not insert function
Is it possible to add vertex_info in a constrained Delaunay triangulation?
the documentation says nothing about "insert" using an iterator with info
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Triangulation_2_ref/Class_Constrained_Delaunay_triangulation_2.html
i tried modifying a Delaunay example that adds an int to the info() but
the compiler gives many errors on the insert function.
regards
cristobal
taking an interator over point and info is available.
You need to set them by hand like this for example:
Vertex_handle vh=cdt.insert(pt);
vh->info()=5;
If you have a performance issue, you must use spatial sorting first has
done in the implementation of insert-by-range in CGAL/Delaunay_triangulation_2.h
Sebastien.
- [cgal-discuss] constrained delaunay triangulation and vertex info, Cristobal Navarro, 05/26/2012
- Re: [cgal-discuss] constrained delaunay triangulation and vertex info, Sebastien Loriot (GeometryFactory), 05/28/2012
Archive powered by MHonArc 2.6.16.