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

标签 c++ cgal

所以我目前有一个使用此设置工作的 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/

相关文章:

c++ - 带颜色的 3d 网格上的 CGAL boolean 运算

c++ - 使用 Phong 方法的不良照明

c++ - 如何在命令行 lldb 中显示 CGAL 异常

c++ - 如何将文件中的长字符串读入数组或类似的东西?

c++ - 无法从 'const std::reverse_iterator<_RanIt> &' 推断出 'std::string' 的模板参数

c++ - if (condition) try {...} 在 C++ 中合法吗?

c++ - 字符到整数数组

c++ - 在 m/n 的二维数组中搜索行和列的元素

c++ - 如何访问 CGAL 3D 三角剖分中的方面?

c++ - 如何用CGAL获取多边形网格的顶点和面?