itkwidgets
itkwidgets copied to clipboard
How to read XDMF in notebook?
Hi all,
I couldn't get to read XDMF files in a notebook
from itkwidgets import view
import vtk
filename='task7/mesh_domains.xdmf'
reader = vtk.vtkXdmfReader()
reader.SetFileName(filename)
reader.Update()
vtk_image = reader.GetOutput()
view(vtk_image)
It just produces a black screen:

The XDMF file I'm trying to read can be found here.
Is it possible to read XDMF files?
@shimwell
Hi,
This will be addressed via #490 -- when I loaded the test data it was a vtkUnstructuredGrid instead of vtkImageData.
Hi,
Oh ok so at the moment only vtkImageData can be read right?
Correct