itkwidgets icon indicating copy to clipboard operation
itkwidgets copied to clipboard

How to read XDMF in notebook?

Open RemDelaporteMathurin opened this issue 3 years ago • 4 comments

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:

image

The XDMF file I'm trying to read can be found here.

Is it possible to read XDMF files?

RemDelaporteMathurin avatar Aug 17 '22 14:08 RemDelaporteMathurin

@shimwell

RemDelaporteMathurin avatar Aug 17 '22 14:08 RemDelaporteMathurin

Hi,

This will be addressed via #490 -- when I loaded the test data it was a vtkUnstructuredGrid instead of vtkImageData.

thewtex avatar Aug 18 '22 14:08 thewtex

Hi,

Oh ok so at the moment only vtkImageData can be read right?

RemDelaporteMathurin avatar Aug 19 '22 10:08 RemDelaporteMathurin

Correct

thewtex avatar Aug 23 '22 02:08 thewtex