c++ - CGAL 二维三角测量 : Get only inner triangles

标签 c++ cgal

我正在使用 CGAL 4.13 对轮廓进行一些二维三角剖分。在我的例子中,一些随机数据最初是从 GeoJSON 读取的:

GeoJSON outline

三角测量与 CGAL 用户手册中提到的完全相同: https://doc.cgal.org/latest/Mesh_2/index.html#title14

但是当我从 Mesher 中取出三角形时(通过 mesher.triangulation()),不仅得到了内部三角形,还得到了一些“外部”三角形三角形:

OpenGL renderer triangles

有没有办法只得到与轮廓匹配的三角形?像这样: Desired rendering

最佳答案

三角化的人脸类型有一个成员函数is_in_domain()

关于c++ - CGAL 二维三角测量 : Get only inner triangles,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54961013/

相关文章:

c++ - CGAL Voronoi 图 : Link input sites to faces

c++ - CGAL:遍历所有面的所有顶点

c++ - 一对 C++ 交换方法的优点是什么?

c++ - 存储抽象类型的对象

c++ - 传递输入参数作为右值引用?

c++ - 编译并运行CGAL Triangulation演示

c++ - 一个定义规则 - 内联函数的多个定义

c++ - QQuickImageProvider::requestImage图像缩放,如何处理

c++ - CGAL:错误的 Delaunay 结果?

c++ - CGAL 中的 const_handle 到 non_const_handle