Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] constrained delaunay triangulation and vertex info

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] constrained delaunay triangulation and vertex info


Chronological Thread 
  • 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:
Hello
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
You can use a vertex type with info but not insert function
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.



Archive powered by MHonArc 2.6.16.

Top of Page