12345678910111213 |
- from vedo import dataurl, Mesh, Plotter
- styles = ['default', 'metallic', 'plastic', 'shiny', 'glossy', 'ambient', 'off']
- msh = Mesh(dataurl+"beethoven.ply").c('gold').subdivide()
- plt = Plotter(N=len(styles), bg='bb')
- for i,s in enumerate(styles):
- msh_copy = msh.clone(deep=False).lighting(s)
- plt.at(i).show(msh_copy, s)
- plt.interactive().close()
|