<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Indeed, it is simple David, as I discovered after posting that query :)<br>
<br>
Thanks<br>
Gib<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF341137"><font size="2" color="#000000" face="Tahoma"><b>From:</b> David Gobbi [david.gobbi@gmail.com]<br>
<b>Sent:</b> Thursday, 6 November 2014 5:34 p.m.<br>
<b>To:</b> Gib Bogle<br>
<b>Cc:</b> vtkusers@vtk.org<br>
<b>Subject:</b> Re: [vtkusers] Transform axes<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hi Gib,
<div><br>
</div>
<div>If I'm reading your question correctly, then what you are looking</div>
<div>for is very easy to achieve.</div>
<div><br>
</div>
<div>To transform an object from its canonical x,y,z axes onto a</div>
<div>new set of orthogonal axes, all you need is to set the first three</div>
<div>columns of a 4x4 matrix to those axes.</div>
<div><br>
</div>
<div>if the axis vectors are u, v, and w, then the transform matrix is</div>
<div><br>
</div>
<div>u_x, v_x, w_x, 0,</div>
<div>u_y, v_y, w_y, 0,</div>
<div>u_z, v_z, w_z, 0,</div>
<div>0, 0, 0, 1</div>
<div><br>
</div>
<div>No algebra involved!</div>
<div><br>
</div>
<div> - David</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Nov 5, 2014 at 5:47 PM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi all,<br>
<br>
This is a 3D geometry problem, one that many people must have solved.  I want to apply a transform to my actor to bring it's local axes (which are initially aligned with the global axes) into alignment with a specified triplet of orthogonal vectors.  In fact
 alignment with a pair is sufficient.  I'm hoping that somebody has done this in VTK and can save me the trouble of going through the algebra.<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
Gib<br>
</font></span></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>