Hi all,<div><br></div><div>I've been trying to implement a command to rotate the plot a specified number of degrees from a specified axis, basically it is:</div><div><br></div><div>rotate_plot -x degrees -y degrees -z degrees</div>
<div><br></div><div>And internally performs the commands RotateX(xDegrees), RotateY(yDegrees) and RotateZ(zDegrees), to perform undo I just need to do the same rotations in the inverse order with the negative values of the angles and it works fine too, I can see the structure rotating the specified degrees in the specified axis (testing with trivial numbers, like 45, 90, 180, etc).</div>
<div><br></div><div>But the problem is that I want to do the same with user interaction of the mouse, for that I'm using a derived class of vtkInteractorStyle. When I start from a (0,0,0) degrees reference, and rotate the plot on (45,45,45) degrees, I can see the structure rotate the specified degrees correctly, but the camera->GetOrientation() will give me another value totally different, in this case (58.6003, -16.3249, 73.6751) degrees, when I expect to see (45, 45, 45).</div>
<div><br></div><div>I even can rotateZ -45, rotateY -45, rotateX -45 and I will go back to (0,0,0), but camera->GetOrientation() shows totally different values.</div><div><br></div><div>Is there any way to obtain the degrees of rotation of the structure when using mouse interaction so I can use them directly on transform->RotateX, RotateY and RotateZ for my command?</div>
<div><div><br></div><div>Thanks in advance,</div>-- <br><div>Guillermo Valin</div><div>Importadora KBOOM Limitada - Tecnología Explosiva!</div>w: <a href="http://www.kboom.cl" target="_blank">http://www.kboom.cl</a> <> e: <a href="mailto:guillermo@kboom.cl" target="_blank">guillermo@kboom.cl</a><br>
</div>