[vtkusers] vtkArrowSource rotation issue

Bill Lorensen bill.lorensen at gmail.com
Sat May 15 16:15:05 EDT 2010


Here is an example:
http://vtk.org/Wiki/VTK/Examples/GeometricObjects/Display/OrientedArrow
that orients an arrow along an arbitrary direction.

Bill

On Thu, May 13, 2010 at 10:46 AM, Markus Ott <ott-markus at t-online.de> wrote:
> Hi,
>
> i have a problem rotating vtkArrowSource. A instantiated arrowSource
> points from [0, 0, 0] to [1, 0, 0] with it's origin at [0, 0, 0]. If i
> want to rotate this thing to [1, 1, 1] what is the correct way to do
> this rotation?
>
> Obviously I need a rotation of 45 degrees around the y and the z axis.
> Doing this via my actor works for each axis perfectly but putting it all
> together the arrow doesn't point to the desired location:
>
> actor.RotateWXYZ(45, 0, 0, 1);
> actor.RotateWXYZ(45, 0, 1, 0);
>
> What is the right way of doing this? I just don't get it!
>
> Thanks so far.
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list