12345678910111213 |
- """Intersection of two polygonal meshes"""
- from vedo import *
- settings.use_depth_peeling = True
- car = Mesh(dataurl+"porsche.ply").alpha(0.2)
- line = [(-9.,0.,0.), (0.,1.,0.), (9.,0.,0.)]
- tube = Tube(line).triangulate().c("violet",0.2)
- contour = car.intersect_with(tube).linewidth(4).c('black')
- show(car, tube, contour, __doc__, axes=7).close()
|