Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Vertex_handle in Vertex-Info

Subject: CGAL users discussion list

List archive

[cgal-discuss] Vertex_handle in Vertex-Info


Chronological Thread 
  • From: Winnie Hellmann <>
  • To:
  • Subject: [cgal-discuss] Vertex_handle in Vertex-Info
  • Date: Fri, 28 Oct 2011 14:19:06 +0200

Hi everybody,

I need to use triangulation vertex handles in the attached info structure. So what I want to do is something like this:

struct Vertex_info
{
typename Triangulation::Vertex_handle the_handle;
};


typedef CGAL::Triangulation_euclidean_traits_2<Kernel> Traits;

typedef CGAL::Triangulation_vertex_base_with_info_2<Vertex_info, Kernel> Vertex_base;

typedef CGAL::Constrained_triangulation_face_base_2<Kernel> Face_base;

typedef CGAL::Triangulation_data_structure_2<Vertex_base,Face_base> Data_structure;

typedef CGAL::No_intersection_tag Itag;

typedef CGAL::Constrained_Delaunay_triangulation_2<Traits, Data_structure, Itag> Triangulation;

Unfortunately Triangulation is not known when defining Vertex_info. Currently I am messing around with pointers (which is really ugly combined with template-stuff!). Is there a nice solution for this? For example can I somehow rebind the vertex info?

Thanks,
Winnie Hellmann



Archive powered by MHonArc 2.6.16.

Top of Page