# Visualization of vti files

**URL:** https://discourse.paraview.org/t/visualization-of-vti-files/8127
**Category:** ParaView Support
**Tags:** vtk
**Created:** [October 5, 2021, 11:48am UTC](https://discourse.paraview.org/t/visualization-of-vti-files/8127 "2021-10-05T11:48:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aaigner](https://discourse.paraview.org/user_avatar/discourse.paraview.org/aaigner/32/7686_2.png) [@aaigner](https://discourse.paraview.org/u/aaigner)
#### Post date: [October 5, 2021, 11:48am UTC](https://discourse.paraview.org/t/visualization-of-vti-files/8127/1 "2021-10-05T11:48:10Z")

</div>

Hi,

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)

Problem:

- 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  
Andreas

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 5, 2021, 11:56am UTC](https://discourse.paraview.org/t/visualization-of-vti-files/8127/2 "2021-10-05T11:56:45Z")

</div>

> [@aaigner](#):
>
> intended behaviour of ParaView or did I find a bug?

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.

---

<div class="post-metadata">

### Author: ![aaigner](https://discourse.paraview.org/user_avatar/discourse.paraview.org/aaigner/32/7686_2.png) [@aaigner](https://discourse.paraview.org/u/aaigner)
#### Post date: [October 5, 2021, 12:00pm UTC](https://discourse.paraview.org/t/visualization-of-vti-files/8127/3 "2021-10-05T12:00:18Z")

</div>

Thank you for the increadible fast reply.

I will rewrite my code with vtkStructuredGrid and test this.
