[vtkusers] vtkArrowSource rotation issue
bill.lorensen at gmail.com
Sun May 16 11:12:27 EDT 2010
I just modified the example to optionally use actor's SetUserMatrix.
That may better suit your application.
On Sun, May 16, 2010 at 5:24 AM, Markus Ott <ott-markus at t-online.de> wrote:
> Thanks! This helped me a lot :)
> Bill Lorensen schrieb:
>> Here is an example:
>> that orients an arrow along an arbitrary direction.
>> On Thu, May 13, 2010 at 10:46 AM, Markus Ott <ott-markus at t-online.de> wrote:
>>> 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:
More information about the vtkusers