I have been working on this for quite some time. I have a list of Delaunay triangles with knowing all the vertex, now I need to calculate the neighbors of each triangle.
I know that python has the module Delaunay in scipy.spatial, which can be used to calculate the simplices and the neighbors knowing a list of points. But how can i calculate the neighbors given all the simplices.
The list of triangles look like this:
[[[634706.612442, 3086432.2967], [635268.645733, 3086636.61233],[634830.249107, 3087157.20293]]
[[634706.612442, 3086432.2967], [634830.249107, 3087157.20293], [634401.962216, 3086874.97886]]
[[656237.10083, 3061518.637755], [656776.863279, 3061883.38021], [656330.134218, 3062431.49804]]
[[656237.10083, 3061518.637755], [656330.134218, 3062431.49804], [655787.935768, 3061995.043438]]
[[656541.118122, 3060981.747767], [657223.592341, 3061335.26239], [656776.863279, 3061883.38021]]
[[656541.118122, 3060981.747767], [656776.863279, 3061883.38021], [656237.10083, 3061518.637755]]]
The x,y coordinate of each vertex are given.