|
![](/i/fill.gif) |
jimbobjim <jim### [at] blueyonder co uk> wrote:
: #declare my_array = array[3] {10,11,12}
: #declare my_value = array[2];
: hence my_value would take its value from the 2nd array element, ie = 11.
Firstly, it has to be:
#declare my_value = my_array[2];
Secondly, the indexing starts from 0, which means that '12' is assigned
to 'my_value'.
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |