POV-Ray : Newsgroups : povray.unofficial.patches : POV+for() : Re: POV+for() Server Time
2 Nov 2024 17:19:18 EDT (-0400)
  Re: POV+for()  
From: J  Grimbert
Date: 6 May 1999 09:31:02
Message: <37318B80.1AA8EFB7@atos-group.com>
Nieminen Mika wrote:
> 
>   Of course the syntax cannot be
> 
> #do
>   ...
> #while(...)
> 
> since you may want to put a regular #while loop inside the do-while loop.
> Perhaps something like:
> 
> #do
>   ...
> #dowhile(...)
> 

if you have something like

init
calcA
#while
calcB
calcA
#end

you can fold it like this:

init
#while 
#if (not first time) 
calcB
#end
calcA
#end

I do not see the need for #do/#dowhile


Post a reply to this message

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