[vtkusers] Relative Rotation with VTK Transform

David Gobbi david.gobbi at gmail.com
Tue Feb 16 11:07:52 EST 2016


Hi Lonni,

Unfortunately, this is the sort of puzzle that I would not want to attempt
to solve without having an actual device and code to test.

 - David

On Tue, Feb 16, 2016 at 8:55 AM, Lonni Besançon <lonni.besancon at gmail.com>
wrote:

> Hi David,
>
> Thanks for your interest.
> I actually figured it out a few hours ago, but I'm still stuck there.
>
> Indeed, I can get the rotation that I want to perform in the form that
> RotateWXYZ takes (angle in degrees, axis).
> However, when I perform the rotation that way, using the values I have, I
> have the problem that my dataset is not rotating according to the rotation
> I
> perform on tablet i.e:
> When I start, my dataset is aligned with the tablet, rotating around the
> x-axis performs a x-axis rotation of the dataset and so on for other axis.
> However, when I rotate first around an other axis and then perform a x-axis
> rotation of the tablet, the dataset gets rotated along an other axis (which
> is none of the tablet's axis). This led me to think that the order in which
> the rotation were performed was not good, so I tried again changing Post to
> Pre multiply but it did not change anything.
>
> Not sure my explanations are really clear here. Hope you understand.
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Relative-Rotation-with-VTK-Transform-tp5736566p5736588.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160216/8159cece/attachment.html>


More information about the vtkusers mailing list