POV-Ray : Newsgroups : povray.newusers : math : Re: math Server Time
6 Sep 2024 12:14:32 EDT (-0400)
  Re: math  
From: Ross Litscher
Date: 11 Apr 1998 18:52:16
Message: <352FF420.7E51@osu.edu>
Alain CULOS wrote:
> 
> Hi Ross,
> 
> You can :
> 
> 1/ define a starting point, i.e. :
> #declare x=0
> 
> 2/ do your loop until an end point, i.e. :
> #while (x <= 10)
> 
> 3/ do your calculation, i.e. :
> #declare y=3*x+1
> 
> 4/ define your object based on this calculation, i.e. :
> sphere {<x, y, 0> 5}
> 
> 5/ do something to keep x incrementing, i.e. :
> #declare x=x+1
> 
> 6/ close your loop :
> #end
> 
> And you have it.
> Hope this helps,
> Al.
> 


yes, that helps. Thankyou.


Post a reply to this message

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