开发者

CGAL 2D Delaunay Triangulation: How to get all the edges

开发者 https://www.devze.com 2023-04-03 05:40 出处:网络
How to get/iterate over all the edges in the 2D delaunay graph in CGAL (C++)开发者_运维知识库?

How to get/iterate over all the edges in the 2D delaunay graph in CGAL (C++)开发者_运维知识库?

For example, in MATLAB this is just edges(dt).


You simply need to use members functions All_edges_iterator all_edges_begin()
All_edges_iterator all_edges_end()
to get the iterator range over edges.

It is documented on the Triangulation_2 page here

Note that you will get edges incident to the infinite vertex together with finite edges.

0

精彩评论

暂无评论...
验证码 换一张
取 消