【发布时间】:2015-11-24 09:16:21
【问题描述】:
我使用projection_traits_xy_3 [1] 从 2.5D 数据计算了 2D 约束 delaunay 三角剖分。现在我想获得一个可以可视化的网格。
我已经按照手册 [2] 使用 3d delaunay 做到了这一点,我如何使用 2.5D CDT 来实现它?
[...]
typedef CGAL::Projection_traits_xy_3<K> Gt;
typedef CGAL::Constrained_Delaunay_triangulation_2<Gt, Tds> CDT;
[...]
CDT cdt;
cdt.insert(points.begin(),points.end());
[...]
¿?
[...]
std::ofstream out(outdir + "out.off");
Polyhedron output_mesh;
CGAL::output_surface_facets_to_polyhedron(¿?, output_mesh);
out << output_mesh;
[1]http://pastebin.com/HzAwrnW5
[2]http://doc.cgal.org/latest/Point_set_processing_3/index.html#chappoint_set_processing_3 http://doc.cgal.org/latest/Surface_reconstruction_points_3/
【问题讨论】: