POV-Ray : Newsgroups : povray.general : Rotate about arbitrary axis? : Rotate about arbitrary axis? Server Time
10 Aug 2024 07:21:26 EDT (-0400)
  Rotate about arbitrary axis?  
From: David Curtis
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

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