|
![](/i/fill.gif) |
I would like to do something like this
*
**
***
**
*
and decrement the number of objects in one direction as the loops progress. How
can I do this correctly? This does not work.
#declare IndexX = 0;
#while (IndexX <= 9)
#declare EndZ = 9;
#declare IndexZ = 0;
#while (IndexZ <= EndZ)
sphere { <IndexX,1,IndexZ>, 0.1 texture {pigment{color Red}}}
#declare EndZ = EndZ - 1;
#declare IndexZ = IndexZ + 1;
#end
#declare IndexX = IndexX + 1;
#end
Cheers,
Haakon
Post a reply to this message
|
![](/i/fill.gif) |