POV-Ray : Newsgroups : povray.beta-test : crash during function creation in loop : crash during function creation in loop Server Time
30 Jul 2024 06:31:14 EDT (-0400)
  crash during function creation in loop  
From:
Date: 3 Jan 2002 06:38:07
Message: <q6g83u4egq3ts0m8ip5nkn5lf0ljkacu8g@4ax.com>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.