[vtkusers] vtkXdmfReader
Nico Schlömer
nico.schloemer at gmail.com
Sun Dec 13 07:36:03 EST 2015
Hi everyone,
I've been using the `vtkUnstructuredGridReader` and the
`vtkXMLUnstructuredGridReader` for a while now to read VTK/VTU meshes, e.g.,
```
reader = vtk.vtkUnstructuredGridReader()
reader.SetFileName(filename)
reader.Update()
vtk_mesh = reader.GetOutput()
```
and then
```
points = vtk.util.numpy_support.vtk_to_numpy(
vtk_mesh.GetPoints().GetData()
)
```
etc. From the documentation, it seemed easy enough to phase in the
`vtkXdmfReader`. However,
```
AttributeError: 'vtkIOXdmf2Python.vtkXdmfReader' object has no attribute
'GetOutput'
```
Any hints on how to use the `vtkXdmfReader`?
Cheers,
Nico
[1] http://www.vtk.org/doc/nightly/html/classvtkXdmfReader.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151213/81987222/attachment.html>
More information about the vtkusers
mailing list