CGAL 2.5D三角剖分附加顶点信息 [英] CGAL 2.5D Triangulation Attach vertex info
问题描述
因此我目前使用此设置可以使用2.5D Delaunay三角剖分.
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;
但是我想将附加信息附加到每个顶点.我正在使用此设置,因为3D数据是LiDAR,因此受到限制.这种方法效果很好,但是我只需要在每个顶点上附加附加信息即可.
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.
这是我尝试使用的方法,但是Delaunay_triangulation_2的模板不允许使用这么多参数.有什么想法吗?
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;
推荐答案
我为您提供了一个完整的示例在github 上,并提交了拉动请求
I've put you a complete example on github and filed a pull request
这篇关于CGAL 2.5D三角剖分附加顶点信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!