markpoint.py 431 B

123456789101112131415
  1. """Lock an object orientation
  2. to constantly face the scene camera"""
  3. from vedo import *
  4. sp = Sphere().wireframe()
  5. verts = sp.vertices
  6. tx1 = Text3D("Fixed Text", verts[10], s=0.07, depth=0.1, c="lb")
  7. tx2 = Text3D("Follower Text", verts[144], s=0.07, c="lg")
  8. tx2.follow_camera()
  9. fp = sp.flagpole("The\nNorth Pole", c='k6', rounded=True)
  10. fp = fp.scale(0.4).follow_camera()
  11. show(sp, tx1, tx2, fp, __doc__, bg='bb', axes=1).close()