POV-Ray : Newsgroups : povray.newusers : Rotating along XY plane? : Re: Rotating along XY plane? Server Time
29 Jul 2024 16:19:37 EDT (-0400)
  Re: Rotating along XY plane?  
From: Jim Charter
Date: 27 Jun 2005 14:55:07
Message: <42c04b8b$1@news.povray.org>
bardgaijin wrote:
> I'd like to be able to rotate an object -- for example, hands on a clock --
> along a plane (in this case the XY plane). My particular project is not a
> clock, but I'm hopful it illustrates my goal.
> 
> However, Pov-Ray seems to only be able to rotate objects around a particular
> axis.
> 
> I guess what I'm looking for is a run-down on the math required -- i.e.
> rotate so much along this axis, and then along this axis, etc.
> 
> Any help would be greatly appreciated.
> 
> Thanks alot.
> 
> -Alex
> 
> 
Maybe I don't understand your question.

Would neither of these be solutions?

#local I=0;#while(I<12)
         cylinder {
		0,
		<0,1,0>,
		.02
		rotate < I*30, 0, 0 >
		pigment { Blue }
	}
#local I=I+1;#end

#local I=0;#while(I<90)
         cylinder {
		0,
		< 0, sin(I*pi/6), cos(I*pi/6) >,
		.02
		pigment { Red }
	}
#local I=I+1;#end


Post a reply to this message

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