문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top