[vtkusers] HELP!! Rotation!!
Cedric LE MAITRE
Cedric.Le.Maitre at ifremer.fr
Tue Jun 24 03:09:04 EDT 2003
Hi Marisa,
I'm a VTK beginner, but i'll try to answer your question with my OpenGl
knowledges. For make your object rotate on itself, you need that its
position is at the origin of the transformation matrix. By default, VTK
shift the object to the origin and after rotate it. If in your case, it
doesn't work like this, you must have done a translation before. Try to
do the translation after your rotation.
Hope it'll be usefull,
Cedric.
marisa aurelio a écrit :
>
> Hi vtkUsers,
>
> I have 2 polydata and I want to rotate one of them. But when I do
> 'rotateWXYZ(180, 0, 0, 1)' the polydata rotates but does not maintain his
> center.
> What I would like to do was rotate the polydata but maintain the center of
> it, for example in the Y axis.
> For example, I have several contours in the same position and I want to
> rotate them, maintain their center, in order to form a ball.
>
> How can I do this???
>
> Thanks in advance,
> Marisa.
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list