[vtkusers] Using vtkXMLStructuredGridReader to read only part of a data file
Favre Jean
jfavre at cscs.ch
Fri Mar 12 11:03:15 EST 2010
I believe It is possible to select which array to load or skip over, before executing Update().
You must execute UpdateInformation() first, and then set or unset the arrays of your choice. Here is the example python code
reader = vtkXMLUnstructuredGridReader()
reader.SetFileName("/local/data/slice.vtu")
reader.UpdateInformation()
print reader.GetPointDataArraySelection()
reader.SetPointArrayStatus('Temperature', 0)
reader.GetPointArrayStatus('Temperature')
reader.Update()
-----------------
Jean M. Favre
Swiss National Supercomputing Center
More information about the vtkusers
mailing list