CGAL 2D Delaunay Triangulation: How to get edges as vertex id pairs

女生的网名这么多〃 提交于 2019-11-28 10:16:05

First you need to use a vertex type with info as in these examples. Then an edge is a pair containing a handle to a face as well as the index of the vertex in the face that is opposite to the edge.

if you have:

Delaunay::Edge e=*it;

indices you are looking for are:

int i1= e.first->vertex( (e.second+1)%3 )->info();
int i2= e.first->vertex( (e.second+2)%3 )->info();
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!