POV-Ray : Newsgroups : povray.newusers : problems rotating around arbitrary axis : problems rotating around arbitrary axis Server Time
4 Nov 2024 21:25:28 EST (-0500)
  problems rotating around arbitrary axis  
From: Kaveh
Date: 24 Nov 2002 00:36:02
Message: <1fm5fwi.sbrq6ce5gd98N%kaveh@delete_this.focalimage.com>
I am trying to rotate an object around an axis, using, for example, this
code:

---------------
#declare myvector <1,0,1>;

object{myobject rotate 45*vnormalize(myvector)}
---------------

But the rotation is not around the vector specified. It works fine for
x,y, etc, but around other vectors it doesn't give the expected result.

I tried a loop with a range of rotations, to see the trajectory, and it
is not a circle, but some kind of cusp shape.

Is there something basic I am doing wrong?
-- 
Kaveh


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.