spline_draw1.py 437 B

1234567891011121314
  1. from vedo import dataurl, Image, Mesh
  2. from vedo.applications import SplinePlotter # ready to use class!
  3. pic = Image(dataurl + "images/embryo.jpg")
  4. # Works with surfaces too
  5. # pic = Mesh(dataurl + "bunny.obj").scale(80).shift(dz=-1)
  6. # pic.color("blue9").alpha(0.75).backface_culling()
  7. plt = SplinePlotter(pic)
  8. plt.show(mode="image", zoom='tightest')
  9. if plt.line:
  10. print("Npts =", len(plt.points()), "NSpline =", plt.line.npoints)