POV-Ray : Newsgroups : povray.general : Array with double #while : Re: Array with double #while Server Time
31 Jul 2024 12:14:13 EDT (-0400)
  Re: Array with double #while  
From: Tim Attwood
Date: 6 Feb 2007 16:09:34
Message: <45c8ee8e$1@news.povray.org>
You are making the same mistake twice...
The initial value in your inner nested while loops
need to be set every time the inner loop executes.
Like this:

#local A = from#;
#while (A <= to#)
   #local B = from#;
   #while (B <= to#)
      ... process
      #local B = B + step#;
   #end
   #local A = A + step#;
#end


Post a reply to this message

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