所以我目前有一个使用此设置工作的 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并提交了pull request
关于c++ - CGAL 2.5D 三角测量附加顶点信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41786974/