How can I get the vertex indexes from a subdiv in Python?
For example, in the code bellow i got the list of coordinates of the triangles made from a list of points, but i would like to get the indexes of the points (mypts) of these triangles vertex:
retangulo = (0, 0, tam_img[1], tam_img[0])
subdiv = cv2.Subdiv2D(retangulo)
for pts in mypts[0]:
subdiv.insert(pts)
tl = subdiv.getTriangleList()
The triangles are from a Delauney Triangulation.
question from:
https://stackoverflow.com/questions/65920912/getting-vertex-indexes-from-subdiv 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…