|
|
POV 3.5 b 9 on PII 233 128 MB with NT 4 Sp 6
I tried automatic creation of long function in loop but POV crashed. Works fine
for N=1 but crash for N>1 (doasn't matter if there is "&" or "|"). Here is code
for this problem:
#version 3.5;
#include "functions.inc"
#local Max=3;
camera{
orthographic
location -2*Max*z
direction z
up 1.5*Max*y
right 1.5*Max*x*image_width/image_height
}
light_source{ (y/2-x-z)*300 color rgb 1 }
union{
isosurface{
function{
#local S=seed(0);
#local N=2;
#local C=0;
#while (C<N)
#local X=rand(S);
#local Y=rand(S);
#local Z=rand(S);
#local R=rand(S)/5;
#local G=function{f_sphere(x-X,y-Y,z-Z,R)};
G(x,y,z)
#local C=C+1;
#if(C<N)
&
#end
#end
}
contained_by{box{-Max,Max}}
pigment{color rgb 1}
}
}
Any confirmation ?
ABX
Post a reply to this message
|
|