Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Vertex_handle in Vertex-Info
- Date: Fri, 28 Oct 2011 15:07:11 +0200
- Organization: GeometryFactory
On 28/10/2011 14:19, Winnie Hellmann wrote:
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
Hi Winnie,
In this case you have to write your own vertex class and use the rebind.
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Triangulation_3/Chapter_main.html#Subsection_38.4.4
best regards,
andreas
- [cgal-discuss] Vertex_handle in Vertex-Info, Winnie Hellmann, 10/28/2011
- Re: [cgal-discuss] Vertex_handle in Vertex-Info, Andreas Fabri, 10/28/2011
- Re: [cgal-discuss] Vertex_handle in Vertex-Info, Winnie Hellmann, 10/28/2011
- [cgal-discuss] Insertion in Constrained_Delaunay_triangulation_2, Winnie Hellmann, 10/28/2011
- Re: [cgal-discuss] Insertion in Constrained_Delaunay_triangulation_2, Andreas Fabri, 10/28/2011
- Re: [cgal-discuss] Insertion in Constrained_Delaunay_triangulation_2, Winnie Hellmann, 10/28/2011
- Re: [cgal-discuss] Insertion in Constrained_Delaunay_triangulation_2, Andreas Fabri, 10/28/2011
- Re: [cgal-discuss] Insertion in Constrained_Delaunay_triangulation_2, Sylvain Pion, 10/28/2011
- Re: [cgal-discuss] Insertion in Constrained_Delaunay_triangulation_2, Andreas Fabri, 10/28/2011
- Re: [cgal-discuss] Insertion in Constrained_Delaunay_triangulation_2, Winnie Hellmann, 10/28/2011
- Re: [cgal-discuss] Insertion in Constrained_Delaunay_triangulation_2, Andreas Fabri, 10/28/2011
- [cgal-discuss] Insertion in Constrained_Delaunay_triangulation_2, Winnie Hellmann, 10/28/2011
- Re: [cgal-discuss] Vertex_handle in Vertex-Info, Winnie Hellmann, 10/28/2011
- Re: [cgal-discuss] Vertex_handle in Vertex-Info, Andreas Fabri, 10/28/2011
Archive powered by MHonArc 2.6.16.