|
|
Wasn't it CoucouHibou who wrote:
>Hi all,
>
>after some research, I finally found this discussion which talks about
>a subject
>very close to my problem.
>
>I am currently trying to generate a function that interpolates the values of a
>physical parameter from a 3-dimensional array. I have the same kind of error
>message as what has been posted here, when I use the following code (my array
>is named SapceSample, and it has nx*ny*nz elements):
>
>#declare ExtrapFunc=function(px,py,pz){
>
>.... SpaceSample[floor(px)[floor(py)][floor(pz)] ...;
>
>}
>
>The error message is:
>
>Parse Error: ... undeclared identifier 'px'.
>
>So I suppose that when POV-Ray hits the '[', it goes back to the SDL language,
>as Warp explained in message #4.
Arrays are always evaluated at parse time, whereas px is only meaningful
at run time.
Inside functions, all you can do with arrays is things like this:
http://www.econym.demon.co.uk/isotut/arrays.htm
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|