POV-Ray : Newsgroups : povray.general : Array with double #while : Re: Array with double #while Server Time
31 Jul 2024 12:23:35 EDT (-0400)
  Re: Array with double #while  
From: Grassblade
Date: 8 Feb 2007 16:15:00
Message: <web.45cb9217806e8910cabcaa820@news.povray.org>
"Tim Attwood" <tim### [at] comcastnet> wrote:
> 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
Pfft, what a silly mistake! Would you believe I twiddled my code looking for
whatever was messing my code up for over an hour?
Anyway, thanks. It's working as it should now.


Post a reply to this message

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