convex_hull.py 272 B

1234567891011
  1. """Create the Convex Hull of a Mesh or a set of input points"""
  2. from vedo import *
  3. settings.default_font = 'Bongas'
  4. settings.use_depth_peeling = True
  5. spid = Mesh(dataurl+"spider.ply").c("brown")
  6. ch = ConvexHull(spid).alpha(0.2)
  7. show(spid, ch, __doc__, axes=1).close()