lightings.py 359 B

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