CGAL 2.5D 三角测量 附加顶点信息

CGAL 2.5D Triangulation Attach vertex info

本文关键字:顶点 信息 测量 5D 三角 CGAL      更新时间:2023-10-16

所以我目前有一个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;

我已经在github上给你一个完整的例子,并提出了一个拉取请求