Jan-15-2021, 10:42 PM
Dear Forum memebers,
i want to calcualte the surface area of each triangle generated by the Delaunay Triangulation by the following python code.
could you please support with this issue?
i want to calcualte the surface area of each triangle generated by the Delaunay Triangulation by the following python code.
could you please support with this issue?
import numpy as np import matplotlib.pyplot as plt import matplotlib.tri as mtri axes=plt.axes() x=np.random.random(5) y=np.random.random(5) axes.set_xlim([0,1]) axes.set_ylim([0,1]) # plt.scatter(x,y) # plt.show() plt.scatter(x,y) plt.show() # Delanuay Triangulation method triang = mtri.Triangulation(x, y) plt.triplot(triang, 'ro:')thank you in advance