POV-Ray : Newsgroups : povray.advanced-users : math support : Re: math support Server Time
2 Nov 2024 13:17:06 EDT (-0400)
  Re: math support  
From: Mark Wagner
Date: 28 Aug 1999 01:09:26
Message: <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.