teals
teals

Reputation: 47

CGAL 2.5D Triangulation Attach vertex info

so I currently have a 2.5D Delaunay Triangulation working using this setup.

    typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
    typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt;
    typedef CGAL::Delaunay_triangulation_2<Gt> Delaunay;
    typedef K::Point_3 Point_3;

But I want to attach additional information to each vertex. I am using this setup because the 3D data is LiDAR and thus constrained. This method has worked well but I just need to attach addition information to each vertex.

This is what i've attempted to use, but the template for Delaunay_triangulation_2 doesn't allow for this many arguments. Any ideas?

    typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
    typedef CGAL::Triangulation_vertex_base_with_info_2<unsigned int, K> Vb;
    typedef CGAL::Triangulation_data_structure_2<Vb> Tds;
    typedef CGAL::Exact_triangulation_euclidean_traits_xy_3<K> Gt;
    typedef CGAL::Delaunay_triangulation_2<K,Gt,Tds> Delaunay;

Upvotes: 2

Views: 475

Answers (1)

Andreas Fabri
Andreas Fabri

Reputation: 1235

I've put you a complete example on github and filed a pull request

Upvotes: 2

Related Questions