I have a mesh object which defines a 3D object and I can load it with vedo as:
from vedo import *
mesh = Mesh("myphantom.obj")
mesh.show()
What would like to do is convert this to a 3D volume which I can reslice. Is it possible to do this with vedo. I did not see any API call to do this.
in my case, basically I want to save all visible elements as a 3D label map i.e. a binary volume/segmentation.
You can try the following:
image output