dataIO.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:tf-3dgan 作者: meetshah1995 项目源码 文件源码
def plotFromVF(vertices, faces):
    input_vec = mesh.Mesh(np.zeros(faces.shape[0], dtype=mesh.Mesh.dtype))
    for i, f in enumerate(faces):
        for j in range(3):
            input_vec.vectors[i][j] = vertices[f[j],:]
    figure = plt.figure()
    axes = mplot3d.Axes3D(figure)
    axes.add_collection3d(mplot3d.art3d.Poly3DCollection(input_vec.vectors))
    scale = input_vec.points.flatten(-1)
    axes.auto_scale_xyz(scale, scale, scale)
    plt.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号