我正在尝试从点云生成表面
我环顾四周,解决方案似乎是从云点生成三角形,然后生成最终网格。但是,我尝试按照此处提出的程序进行操作,但失败了并获得了以下信息:
可悲的是,我的数学背景不太好,当我开始从其他 awnsers 和 Plotly 文档中的镶嵌中阅读 Jonathan Shewchuk 时,我并没有真正理解。
我使用的代码是这样的:
#Assume X_Vir, Y_Vir and Z_Vir are list of points used to create the scatter plot
points2D = np.vstack([X_Vir, Y_Vir]).T
tri = Delaunay(points2D)
simplices = tri.simplices
fig = ff.create_trisurf(x=X_Vir, y=Y_Vir, z=Z_Vir, simplices=simplices)
fig.show()
有人有想法吗?
慕娘9325324
相关分类