将 Vertex_handles 获取到 delaunay 三角剖分的点
我想迭代 CGAL::Delaunay_triangulation_2 的所有顶点,但无法找到有关获取所有顶点句柄的文档。
我为此找到的文档解释了如何迭代三角测量。
typedef CGAL::Delaunay_triangulation_2<K> T;
typedef T::Vertex_handle Vh;
typedef T::Vertex_iterator Vi;
for (Vi vi = g.vertices_begin(); vi != g.vertices_end(); vi++) {
// Vh v = how can I get this?
}
但是,我找不到有关如何从迭代器获取 Vertex_handle 的文档
I want to iterate through all vertices of a CGAL::Delaunay_triangulation_2
, but am unable to find documentation about getting all the vertex handles.
The documentation I found for this explained how to iterate through the triangulation.
typedef CGAL::Delaunay_triangulation_2<K> T;
typedef T::Vertex_handle Vh;
typedef T::Vertex_iterator Vi;
for (Vi vi = g.vertices_begin(); vi != g.vertices_end(); vi++) {
// Vh v = how can I get this?
}
However, I cannot find documentation about how to get to the Vertex_handle from the iterator
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我只是愚蠢。尝试了一些更随机的事情,发现迭代器实际上是句柄。当然,我在这里写完整篇文章后发现了这一点:-)
Okay I was just stupid. Tried some more random things and got that the iterator actually is the handle. Of course I find this out after writing the whole post here :-)