|
![](/i/fill.gif) |
In the snippet below, the object rotate does not rotate when a variable
value but works with a fixed value. It appears to be always set to zero
(no rotaion0 when a variable is used. The goal was to create a spiral
series of I-beams. Can anyone help me with what I am doing wrong?
thanks
#declare i = 0;
#declare h = 0; //elevation
#declare R = 5; //outer radius
#declare a = 0;
#declare da = 360/40;
#declare bpi = 40; //beams per pi
#declare rrate = 5*2*pi/360; //ramprate
#declare bspan = 2*pi*R/40;
#declare dh = bspan*tan(rrate);
#while (i<40)
object { I_beam
texture { Steel_Beam }
rotate <0,90,0>
translate <R*cos(a), h, R*sin(a) >
}
#local a = a + da;
#local i = i + 1;
#local h = h + dh;
#end
Post a reply to this message
|
![](/i/fill.gif) |