|
|
What goes wrong here?
In the following scene, if you change Steps to 9, 11, 21, 25 ...... there is
one cylinder missing. What thinking error did I make?
ingo.
#version 3.1;
#global_settings {assumed_gamma 1.0}
light_source {<500,500,-500> rgb 1}
camera {location 2*y look_at 0}
#declare StartPoint= <-1,0,0>;
#declare Length= <2,0,0>;
#declare Steps=10;
#declare iStep=1/Steps;
#declare i=0;
#declare i2=i+iStep;
#while (i2 <= 1)
#declare P1= StartPoint+(Length*i);
#declare P2= StartPoint+(Length*i2);
cylinder {P1, P2, 0.05 pigment {rgb 1}}
#declare i= i2;
#declare i2= i+iStep;
#end
sphere { <-1,0,0>,0.05 pigment{rgb 10}}
sphere { < 1,0,0>,0.05 pigment{rgb 10}}
--
Met dank aan de muze met het glazen oog.
Post a reply to this message
|
|