CGAL 2.5D Triangulation Attach vertex info

馋奶兔 提交于 2021-01-27 18:09:13

问题


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;

回答1:


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



来源:https://stackoverflow.com/questions/41786974/cgal-2-5d-triangulation-attach-vertex-info

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!