Hi,<br>
<br>
Just my 2 cents, you can use vtkActor's SetUserTransform or
SetUserMatrix methods. If you already have the transformation matricis
for all steps, you can multiply them together and then just use
SetUserMatrix(). Otherwise create one vtkTransform for each step and
perform the necessory transform using RotateZ or RotateY methods. next
concatenate the 3 transforms to get the final transform to be set for
the vtkActor.&nbsp; the order for concatenating the transform is
important. in your case, it should be Tz&quot; * Ty' * Tz. <br>
<br>
HTH,<br>
<br>
Kevin<br><br><div><span class="gmail_quote">On 8/30/05, <b class="gmail_sendername">Rao Jianguo</b> &lt;<a href="mailto:rao.jianguo@hgu.mrc.ac.uk">rao.jianguo@hgu.mrc.ac.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear All,<br><br>I want to rotate a vector first around&nbsp;&nbsp;z axis&nbsp;&nbsp;( this is prety easy by<br>calling the RotateZ function )<br>and then rotate the actor along the new axes y ( let's call it y').&nbsp;&nbsp;And<br>finally rotate<br>around the new axes Z ( let's call it z'' ).
<br><br>I am pretty sure this is a simple question and should be implimented by<br>somebody<br>but I can't find any example.&nbsp;&nbsp;Anybody there can enlight me? A specific<br>example will<br>be great help.<br><br>Your help is highly appreciated.
<br><br><br>Jianguo<br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ
</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>