POV-Ray : Newsgroups : povray.advanced-users : math support : Re: math support Server Time
2 Nov 2024 13:17:49 EDT (-0400)
  Re: math support  
From: Remco de Korte
Date: 29 Aug 1999 04:51:32
Message: <37C8F008.7E3D963C@xs4all.nl>
Noah A wrote:
> 
> i meant an easy way
> 
> Noah A wrote:
> 
> > 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 tt=0;  // counter
#declare dd=1;  // increment-step
#while (tt!=30)
  ---- do something! anything! ----
  #declare tt=tt+dd;
  #if (tt=15)
    #declare tt=45;
    #declare dd=-1;
  #end
#end

Remco


Post a reply to this message

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