<span style>Hello!</span><div style><br></div><div style>I have been trying to figure out if it is possible to rotate data directly from a imagedata xml file. Can anyone lend me a hand on how to do that?</div><div style><br>
</div><div style>I am currently exporting data from matlab to a .vti imagedata xml file and importing it to paraview (that is I am writing the file without using vtk classes) but I</div><div style>do not know how to rotate the data. According to the <a href="http://www.vtk.org/VTK/img/file-formats.pdf" target="_blank" style="color:rgb(17,85,204)">www.vtk.org/VTK/img/file-formats.pdf</a> file there is a Coordinate tag</div>
<div style>but it does not appear to have an effect when importing, but on the other hand its barely documented and I am really just guessing on how to use it.</div><div style><br></div><div style>Currently I am testing with this data (but my actual data is much larger):</div>
<div style><br></div><div style><div>&lt;?xml version=&quot;1.0&quot;?&gt;</div><div>&lt;VTKFile type=&quot;ImageData&quot; version=&quot;0.1&quot; byte_order=&quot;LittleEndian&quot;&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;ImageData WholeExtent=&quot;0 1 0 1 0 0&quot; Origin=&quot;0.0 0.0 0.0&quot; Spacing=&quot;0.4 0.4 0.4&quot;&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;Piece Extent=&quot;0 1 0 1 0 0&quot;&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;Coordinates&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;DataArray type=&quot;Float32&quot; Name=&quot;x_coordinate&quot; format=&quot;ascii&quot;&gt;0.0 0.3 0.0&lt;/DataArray&gt;</div>
<div><span style="white-space:pre-wrap">                                </span>&lt;DataArray type=&quot;Float32&quot; Name=&quot;y_coordinate&quot; format=&quot;ascii&quot;&gt;0.5 0.2 0.0&lt;/DataArray&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;DataArray type=&quot;Float32&quot; Name=&quot;z_coordinate&quot; format=&quot;ascii&quot;&gt;1.0 0.0 0.0&lt;/DataArray&gt;</div>
<div><span style="white-space:pre-wrap">                        </span>&lt;/Coordinates&gt;</div><div><span style="white-space:pre-wrap">                        </span>&lt;PointData&gt;</div><div><span style="white-space:pre-wrap">                                </span>&lt;DataArray type=&quot;Float32&quot; Name=&quot;MagnitudeArray&quot; format=&quot;ascii&quot;&gt;0.1  0.3  0.5  0.8&lt;/DataArray&gt;</div>
<div><span style="white-space:pre-wrap">                        </span>&lt;/PointData&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;/Piece&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;/ImageData&gt;</div><div>&lt;/VTKFile&gt;</div>
<div><br></div></div><div style>Thanks</div><div style><br></div><div style>BR/ Christoffer</div>