POV-Ray : Newsgroups : povray.general : Rotate about arbitrary axis? Server Time
2 Nov 2024 06:17:29 EDT (-0400)
  Rotate about arbitrary axis? (Message 1 to 3 of 3)  
From: David Curtis
Subject: Rotate about arbitrary axis?
Date: 10 Feb 2000 15:18:39
Message: <38a31d1f@news.povray.org>
Hi. Sorry, I'm not a math major, but working POV (and computer graphics in 
general) I sure as hell wish I was!!! 

I want to rotate a cube around an axis that passes through two opposites 
corners.

I've tried this code but it doesn't work.

box {
        <-1, -1, -1> <1, 1, 1>

        rotate 45*y
        rotate 35.2644*x
        rotate clock*360*y
        rotate -35.2644*x
        rotate -45*y
}

I'm expecting the rotation axis to be s(-1, -1, -1), e(1, 1, 1).

Any help greatly appreciated!

Dave.


Post a reply to this message

From: Peter Popov
Subject: Re: Rotate about arbitrary axis?
Date: 10 Feb 2000 17:10:27
Message: <gjOjOJhWxej6I7POaVML0r9JotIY@4ax.com>
On Wed, 09 Feb 2000 20:19:18 GMT, spa### [at] junkmailcom (David Curtis)
wrote:

>Hi. Sorry, I'm not a math major, but working POV (and computer graphics in 
>general) I sure as hell wish I was!!! 
>
>I want to rotate a cube around an axis that passes through two opposites 
>corners.

Try John VanSickle's Throroughly Useful Macros. They should be linked
from the links section on povray.org and also included in the macro
package Ken has made available on his site.


Peter Popov
pet### [at] usanet
ICQ: 15002700


Post a reply to this message

From: David Fontaine
Subject: Re: Rotate about arbitrary axis?
Date: 10 Feb 2000 17:52:12
Message: <38A340C3.D5D04EB8@faricy.net>
I have written a macro that does this. See me webpage.

--
___     ______________________________________________________
 | \     |_                 <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine               http://www.faricy.net/~davidf/

"Sitting on a cornflake, waiting for the van to come" -Beatles


Post a reply to this message

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