CGAL 和提升 - vertex_iterator & vertex_descriptor

CGAL & Boost - vertex_iterator & vertex_descriptor

对于三角形网格的变形,CGAL 使用来自 boost 的 vertex_iterator & vertex_descriptor。 我想获取提升迭代器/描述符指向的顶点的 x, y, z 值。

如何获取 point/vertex 的那些 x, y, z 值?

vertex_iterator / vertex_descriptor 与我习惯的 CGAL 不同,但我不太了解增强实现。

有谁知道如何使用 boost 的 vertex_iterator / vertex_descriptor 获取点的坐标?

在以下代码片段中,您将获得一个顶点描述符。

// Add another control vertex which requires another call to preprocess.

vertex_descriptor control_3 = *CGAL::cpp11::next(vb, 92);
deform_mesh.insert_control_vertex(control_3);

我可以使用这个描述符得到 Point_3 吗?如果有怎么办?

如果是 CGAL::Polyhedron_3 你就叫 control_3->point()。 如果它是 CGAL::Surface_mesh sm 你调用 sm.point(control_point)