|
![](/i/fill.gif) |
hi, is there any way of using an array like
MAP[mZ][mX] = float in a function?
say:
#local fun = function(x,y,z) { map[z][x] }
results in:
>Float expected but vector or color expression found<
and:
#local fun=function(A,B) { map[A][B] }
results in:
>expected numeric expression, undeclared identifier 'A' found instead<
any way you put it, it's like arrays where not accepted by
the parser.
i wanted to create an isosurface & pigments out of an array of heightdata.
ok, i could stuck together some mesh
from the array but still cannot use it for the pigments if
theres no wrapper from arrays to functions.
anyone a hint please?
Post a reply to this message
|
![](/i/fill.gif) |