silhouette3.py 324 B

1234567891011
  1. """Make the silhouette of an object
  2. move along with camera position"""
  3. from vedo import *
  4. # Need to create a Plotter instance to access the camera
  5. plt = Plotter(bg='blue4', bg2='white')
  6. s = Mesh(dataurl+'shark.ply').c('gray',0.1).lw(1).lc('k')
  7. silh = s.silhouette().c('red3',0.9).lw(3)
  8. plt.show(s, silh, __doc__).close()