Hi,
I tried loading the volumetric mesh (vtkUnstructuredGrid) by using both the interface Load Data as Volume and using “slicer.util.loadVolume(’/path/to/file’)” on the Python interactor to no avail. Slicer simply doesn’t load it up. However, loading it as Model would always work. How do I load it as Volume?
I was able to make it work thanks to your help. One thing I noticed was that the vtkUnstructuredGrid mesh must have CELL_DATA and POINT_DATA for Slicer to work correctly. I’m a beginner at vtk in general, so I guess my question would be which part of your code requires those two pieces of data? Or does volumetric mesh in general needs to have those in Slicer? I was able to generate volumes without those in vtkpython on conda and Paraview. Thanks a lot Andras!
Maybe vtkProbeFilter specifically needs cell or point data (I don’t think you need both). You can convert between point and cell data as needed using vtkPointDataToCellData and vtkCellDataToPointData.