POV-Ray : Newsgroups : povray.advanced-users : too many nested objects : Re: too many nested objects Server Time
29 Jul 2024 18:18:14 EDT (-0400)
  Re: too many nested objects  
From: Sigmund Kyrre Aas
Date: 11 Mar 2001 15:12:03
Message: <cjinatghbcig58ajts1ciocrapqo41rd2g@4ax.com>
On Sun, 11 Mar 2001 05:17:00 +0200, Peter Popov <pet### [at] vipbg> wrote:

>Maybe you have your 'union' statement within the while loop?

Nope, no csg. The syntax is as follows:

while 
 while 
  while
    $d=d+(.8+.2*rand(R3))*.03;
    sphere {d/2 Pos}
    $Pos = newpos(d,Pos)
  end
end
end

The scene parses successfully if I replace line 4 with for instance
$d=(.8+.2*rand(R3))*.03;

Limitation or bug? I don't know, but the syntax above turned out to be
wrong.. it should be 

while 
 $d=d+(.8+.2*rand(R3))*.03;
 while 
  while
    sphere {d/2 Pos}
    $Pos = newpos(d,Pos)
  end
end
end

which works! :)

-- 
ICQ 74734588


Post a reply to this message

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