<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><?xml version="1.0"?></div><div><VTKFile type="ImageData" version="0.1" byte_order="LittleEndian"></div><div><span style="white-space:pre-wrap">        </span><ImageData WholeExtent="0 1 0 1 0 0" Origin="0.0 0.0 0.0" Spacing="0.4 0.4 0.4"></div>
<div><span style="white-space:pre-wrap">                </span><Piece Extent="0 1 0 1 0 0"></div><div><span style="white-space:pre-wrap">                        </span><Coordinates></div><div><span style="white-space:pre-wrap">                                </span><DataArray type="Float32" Name="x_coordinate" format="ascii">0.0 0.3 0.0</DataArray></div>
<div><span style="white-space:pre-wrap">                                </span><DataArray type="Float32" Name="y_coordinate" format="ascii">0.5 0.2 0.0</DataArray></div><div><span style="white-space:pre-wrap">                                </span><DataArray type="Float32" Name="z_coordinate" format="ascii">1.0 0.0 0.0</DataArray></div>
<div><span style="white-space:pre-wrap">                        </span></Coordinates></div><div><span style="white-space:pre-wrap">                        </span><PointData></div><div><span style="white-space:pre-wrap">                                </span><DataArray type="Float32" Name="MagnitudeArray" format="ascii">0.1 0.3 0.5 0.8</DataArray></div>
<div><span style="white-space:pre-wrap">                        </span></PointData></div><div><span style="white-space:pre-wrap">                </span></Piece></div><div><span style="white-space:pre-wrap">        </span></ImageData></div><div></VTKFile></div>
<div><br></div></div><div style>Thanks</div><div style><br></div><div style>BR/ Christoffer</div>