The models and other data points are usually in a East,North,Elevation coordinate system, but often some datasets will be in a West,South,Depth or some variant in between, due to legacy reasons.<div><br></div><div>I would like to be able to just flick a switch and have everything displayed the &quot;right way&quot; around, however if its going to involve vtkTransformPolyData, what I might be forced to do is flip everything around at the point of importing/loading the data, and then flip the numbers around again when I display grids, coordinates and stuff in tables...</div>

<div><br></div><div>However it would be ideal if I could just tell VTK which way around the world coordinates are, without worrying about normals pointing the wrong way etc.<br><br><div class="gmail_quote">On 17 October 2010 11:11, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The vtk coordinate system is right-handed. Are your models in a left<br>
handed system?<br>
<div><div></div><div class="h5"><br>
On Sat, Oct 16, 2010 at 11:10 PM, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt; wrote:<br>
&gt; Yes, user matrix should work. But a negative scale will mess up the<br>
&gt; shading calculation. The user matrix is used by opengl. Not sure why<br>
&gt; reverse sense did not work.<br>
&gt;<br>
&gt; Try the same thing (as an experiment) with vtkTransformPolyData.<br>
&gt;<br>
&gt; On Sat, Oct 16, 2010 at 7:46 PM, Paul Harris &lt;<a href="mailto:harris.pc@gmail.com">harris.pc@gmail.com</a>&gt; wrote:<br>
&gt;&gt; On 16 October 2010 21:25, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; You can use the vtkTransformPolyDataFilter<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; That will make a copy of the points and then adjust all the values, right?<br>
&gt;&gt;<br>
&gt;&gt; There is quite a lot of points to plot, I was hoping to use an approach that<br>
&gt;&gt; wouldn&#39;t involve using more memory.<br>
&gt;&gt;<br>
&gt;&gt; Earlier, I tried this approach:<br>
&gt;&gt; vtkTransform * flipform = vtkTransform::New();<br>
&gt;&gt; flipform-&gt;Identity();<br>
&gt;&gt; flipform-&gt;Scale(1,1,-1);<br>
&gt;&gt; actor_flip-&gt;SetUserMatrix( flipform-&gt;GetMatrix() );<br>
&gt;&gt;<br>
&gt;&gt; And that worked find *except* that all of the surfaces look dark, as if they<br>
&gt;&gt; are facing away from the camera.<br>
&gt;&gt;<br>
&gt;&gt; I looked around and tried adding vtkReverseSense to the chain, but that<br>
&gt;&gt; didn&#39;t make any difference at all.<br>
&gt;&gt;<br>
&gt;&gt; Should I be able to use SetUserMatrix?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Sat, Oct 16, 2010 at 9:06 AM, Paul Harris &lt;<a href="mailto:harris.pc@gmail.com">harris.pc@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt; The models themselves.   Flipping the ViewUp seems to be the same as<br>
&gt;&gt;&gt; &gt; turning<br>
&gt;&gt;&gt; &gt; the monitor upside down, but that is not the result I want.<br>
&gt;&gt;&gt; &gt; The problem is that Z in model coordinates is &quot;downwards&quot;, but vtk seems<br>
&gt;&gt;&gt; &gt; to<br>
&gt;&gt;&gt; &gt; insist that Z is &quot;upwards&quot;.<br>
&gt;&gt;&gt; &gt; This problem is not just for Z either,<br>
&gt;&gt;&gt; &gt; I also have the situation where in some circumstances, the Y should<br>
&gt;&gt;&gt; &gt; point<br>
&gt;&gt;&gt; &gt; the other way.   ie, Y means South rather than North.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; On 16 October 2010 03:32, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Do you want the models flipped, or just the view of the models?<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; If it is the latter, you can set the ViewUp of the camera to 0,0,-1.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; On Fri, Oct 15, 2010 at 3:17 PM, Paul Harris &lt;<a href="mailto:harris.pc@gmail.com">harris.pc@gmail.com</a>&gt;<br>
&gt;&gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; &gt; Hi all,<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; I have a VTK scene with some vtkPolyDataMappers and actors, plus an<br>
&gt;&gt;&gt; &gt;&gt; &gt; orientation widget.<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; I want to change the fundamental direction of the Z axis, so that it<br>
&gt;&gt;&gt; &gt;&gt; &gt; points<br>
&gt;&gt;&gt; &gt;&gt; &gt; down rather than up.  I want all of the models, the orientation<br>
&gt;&gt;&gt; &gt;&gt; &gt; widget,<br>
&gt;&gt;&gt; &gt;&gt; &gt; etc<br>
&gt;&gt;&gt; &gt;&gt; &gt; to flip, so that they point down instead of up.<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; I&#39;ve tried lots of things but have gotten nowhere...<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; how do I make this happen?<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; thanks<br>
&gt;&gt;&gt; &gt;&gt; &gt; Paul<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt;&gt; &gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt;&gt; &gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt;&gt; &gt;&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt;&gt; &gt;&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>