import numpy as np
from scipy.spatial import Delaunay
import matplotlib.pyplot as plt
points = np.array([[150.276, 1714.5769], [156.6256, 1759.5949],]) #点位坐标格式,省略部分点位坐标
simplices = Delaunay(points).simplices # 三角形中顶点的索引
plt.triplot(points[:, 0], points[:, 1], simplices)
plt.scatter(points[:, 0], points[:, 1], color='r')
plt.show()
#后期需要优化
效果图: