POV-Ray : Newsgroups : povray.advanced-users : math support : Re: math support Server Time
30 Jul 2024 10:16:16 EDT (-0400)
  Re: math support  
From: Bob Hughes
Date: 28 Aug 1999 16:41:29
Message: <37c84979@news.povray.org>
Might also look into 'range' as well, used in the '#switch'
definition. Although the already said '#while' method seems perfectly
plausible for the problem. Except I would put the last '#if' in the
middle instead, and include a 30 check also. I might be in error so be
warned.

 #declare counter = 0;
 #while(counter != 29)
     /*Do something*/
     #if(counter < 16)
         #declare counter = counter + 1;
     #end
     #if(counter = 16)
         #declare counter = 45;
     #end
     #if(counter = 30)
         #declare counter = 29;
     #if(counter > 16)
         #declare counter = counter - 1;
     #end
 #end // 30 check
 #end

Bob

Mark Wagner <mar### [at] gtenet> wrote in message
news:37c76f06@news.povray.org...
>
> Noah A wrote in message <37C75A75.9104ACCC@powersurfr.com>...
> >we need a support group for ppl addicted to math images.
> >how can i make it so that in a while it will go for a certain
number and
> >skip like
> >go while 0-15 then to  45-30
> >
>
> #declare counter = 0;
> #while(counter != 29)
>     /*Do something*/
>     #if(counter < 16)
>         #declare counter = counter + 1;
>     #end
>     #if(counter > 16)
>         #declare counter = counter - 1;
>     #end
>     #if(counter = 16)
>         #declare counter = 45;
>     #end
> #end
>
> Mark
>
>
>


Post a reply to this message

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