|
|
wrote:
I played little more with this bug and found possible explanation. The problem
is probably here:
> #local G=function{f_sphere(x-X,y-Y,z-Z,R)};
> G(x,y,z)
I redefined function during parsing of outer function.
I found it becouse my workaround works fine (when function is not overwriten)
function{
#local S=seed(0);
#local N=3;
#local A=array[N];
#local C=0;
#while (C<N)
#local X=rand(S);
#local Y=rand(S);
#local Z=rand(S);
#local R=.1+rand(S)/5;
#local A[C]=function{f_sphere(x-X,y-Y,z-Z,R)};
#if(C>0)
& A[C](x,y,z)
#else
A[C](x,y,z)
#end
#local C=C+1;
#end
}
ABX
Post a reply to this message
|
|