Marco Musy

Results 216 comments of Marco Musy

Hi, I strongly suspect that the underlying `vtkX3DExporter` class is not able to export volumes. One possibility is to exploit `k3d` interoperability and do something like this, which generates a...

Hi Noe, If you need to export a single mesh you can use `mesh.write('myfile.stl') # or vtk, obj etc` From inside notebooks you cannot export a window because ...there's a...

Hi Noe, yes - exporting the rendering scene to obj is not ready yet (i understand it will in vtk9), you can still save individual meshes as obj files with...

You can try by marking the specific cells for deletion (you might want to make a copy with `mesh.clone()` if needed): ```python from vtkplotter import * pu = load(datadir+'pumpkin.vtk').lw(0.1) #...

what about ovelapping the same wireframe mesh (with optional scaling): ```python from vtkplotter import makeLUT, Sphere, show mesh = Sphere() wmesh = mesh.clone().wireframe().lc('k').lineWidth(0.1) wmesh.scale(0.99) # create some data array to...

In this case you don't need `makeLUT` ```python from vtkplotter import * mesh = Sphere() wmesh = mesh.clone().wireframe().lc('k').lw(0.1) wmesh.scale(0.99) data = mesh.points()[:,2] data[10:90] = float('nan') mesh.pointColors(data, cmap='viridis').addScalarBar() show(mesh, wmesh) ```...

Thanks @ifermion - in the meanwhile i'll try to figure out why the `nan` trick is not working for cells..

Hi - you can 'cut' volumetric data only in a ROI which is of box-like shape. ```python from vtkplotter import load, datadir vol = load(datadir+"embryo.tif") vol.crop(VOI=(20,100, 40,60, 20,80)) vol.show() ```...

no - unless you make an isosurface out of the volume.

Thanks for spotting it! I didn't think of vtk7 ... I will make newer release soon which will address this.