InsightSoftwareConsortium / InsightSoftwareConsortium/itkwidgets

How to read XDMF in notebook?

Open
#508 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
624
Forks
83
PR merge metrics
No merged PRs in 30d

Description

Hi all,

I couldn't get to read XDMF files in a notebook

```python
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](https://user-images.githubusercontent.com/40028739/185173050-6dfd2b60-c546-427e-946c-6d04b9fad29c.png)

The XDMF file I'm trying to read can be found [here](https://github.com/RemDelaporteMathurin/FESTIM-workshop/blob/main/tasks/task7/mesh_domains.xdmf).

Is it possible to read XDMF files?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.