Hi @lassoan, I am currently trying to convert my unstructured grid to a volume. So I can import it into Slicer and export it as DICOM images. The process I’m following is:
- Create my input file:
- Convert UnstructuredGrid to Polydata with GeometryFilter
- Convert PolyData to empty ImageData with PolyDataToImageStencil and ImageStencil
- write input file
- Use the vtkProbeFilter
- read input file
- read original unstructured grid as source file
- write to file.
You have previously provided an example of how to do this, https://github.com/lassoan/SlicerNotebooks/blob/master/UnstructuredGridToVolume.ipynb, however this is now unavailable.
I wanted to know if my method was correct, and if you could repost your example ?