Visualization of vti files


I’m having some problems with the vizualization of several vti files, where the ‘Origin’ is changing.

Case description:

  • I have several “vti” files starting with something like
    "<?xml version="1.0"?>
    <VTKFile type=“ImageData” version=“1.0” byte_order=“LittleEndian” header_type=“UInt64”>
    <ImageData WholeExtent=“0 4 0 4 0 3” Origin="-0.25 -0.25 0" Spacing=“0.05 0.05 0.06”>
  • Each file has a different “Origin” - rotating around (0,0,0)


  • If I load the file series “myeuler_*.vti”, the cell data are read correctly. But the Origin of the shown regular mesh is never updated - it stays at (-0.25,-0.25,0)
  • If I load indiviual files, they are shown at the correct position.

Am I doing something completly wrong and misusing the vtkImageData class? Is this intended behaviour of ParaView or did I find a bug?

Best wishes

It is more a limitation of how vtkImageData and RequestInformation works. You should be able to use vtkStructuredGrid instead.

I’m not enterely sure if we want/can fix that.

Thank you for the increadible fast reply.

I will rewrite my code with vtkStructuredGrid and test this.