Delaunay triangulation - edge flip?

asked 2016-09-10 06:39:05 -0600

vaxon gravatar image

I used this code: for Delaunay triangulation, now I'm trying to figure out how to flip edges like this:

I found that there is a member function of subdiv2d called "swapedges" which potentionally does exactly what I need but I don't know how it's supposed to be used, I'm pretty new at C++ and OpenCV and if there's anyone who could help me by showing an example of how it should work, I would be very thankful.

Thanks in advance.

edit retag flag offensive close merge delete