Closed dan-david closed 2 weeks ago
It returns None because the plane is not hitting the mesh, this works:
from vedo import *
msh = Mesh("sample.stl").alpha(0.1).wireframe()
mslice = msh.slice(normal=[0,1,0], origin=[0,2,0])
mslice.c('purple5')
show(msh, mslice, axes=1)
vedo: v2014.5.1 python: v3.9.18
Why the slice method returns a
None
object for the .stl model?I am using the following file:
sample.stl.zip
Thanks!