十分钟玩转3D绘图:WxGL完全手册.docx
>>> import numpy as np
>>> import wxgl.wxplot as plt
>>> vs = np.array([
[1,-1,1], [1,-1,-1], [1,1,-1], [1,1,1],
[-1,1,1], [-1,1,-1], [-1,-1,-1], [-1,-1,1],
[-1,-1,1], [-1,-1,-1], [1,-1,-1], [1,-1,1],
[1,1,1], [1,1,-1], [-1,1,-1], [-1,1,1]
])
>>> plt.surface(vs, texture=r'example\res\girl.jpg', alpha=False)
下载地址
用户评论