Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Edge index always -1


I'm trying to obtain the index of the vertices from the Delaunay triangulation. Because it's quite a bit of code in all I'll only show the important bits, but I found here:

The function I use to get to the edges: CvSubdiv2DPoint* pt= cvSubdiv2DEdgeOrg( edge ). Where edge is of type CvSubdiv2DEdge. To get the index: int index= pt->id; But this is always giving me -1 for every edge. I would like to get the indices to correspond with the order by which the points have been subdivided. I hope this is possible.