|
|
It seems like the easiest thing to do there is just create a for-next loop and
increment the y position of a short cylinder as you alter the x and z values
with cos and sin functions.
#declare R1 = 5; // radius of spiral
#declare R2= 0.25; // radius of cylinders
#declare Y=0;
#for (t, 0, 2*pi, 0.1)
#declare X = R1*cos(t);
#declare Z = R1*sin(t);
cylinder {<X, Y, Z>, <X, Y+0.5, Z>, R2 pigment {Yellow}}
#declare Y = Y + 0.1;
#end // end for t
Post a reply to this message
|
|