CGAL 2.5D Triangulation 附加顶点信息

CGAL 2.5D Triangulation Attach vertex info

所以我目前有一个使用此设置的 2.5D Delaunay 三角剖分。

    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;

但我想为每个顶点附加附加信息。我正在使用此设置,因为 3D 数据是 LiDAR,因此受到限制。这种方法效果很好,但我只需要将附加信息附加到每个顶点。

这是我尝试使用的,但是 Delaunay_triangulation_2 的模板不允许有这么多参数。有什么想法吗?

    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;

我给你举了一个完整的例子on github and filed a pull request