|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |