<div>Hi,</div><div><br></div>Instead of rotating the actor directly, you could  try setting a user transform to it (SetUserTransform) and manipulating that instead. Now, you&#39;ll have control over the transform that you set, and if you call Identity() on it, it should reset to original translation/scaling/rotation...<div>
<br></div><div>That&#39;s what I&#39;m doing...</div><div><br></div><div>Regards,</div><div>Shash<br><br><div class="gmail_quote">2011/3/22 Vinicius Rogério Araujo Silva <span dir="ltr">&lt;<a href="mailto:vinicius.ras@gmail.com">vinicius.ras@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all,<div><br></div><div>I&#39;ve made a rotation to a vtkActor like that:</div><div><br></div><div>myActor-&gt;RotateWXYZ(45,1,0,0);</div>
<div><br></div><div>After it has been rotated, seems the subsequent rotations are applied over the current rotation angle.</div>
<div>How do I reset the rotation of my actor to the default value?</div><div><br></div><div>What I want to do is to allow the user to define an angle and make the actor rotate from its original position to that angle.</div>

<div>But it seems that the angles are acumulating. Like, if the user enters 45 degrees, the actor rotates 45 degrees.</div><div>But then, if the user types, let&#39;s say, 30, it seems the angles are summed and the actor gets a 75 degrees rotation.</div>

<div>How to solve that?</div><div><br></div><div>Thanks.</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>