POV-Ray : Newsgroups : povray.general : #while loops and staggered offsets ? : Re: #while loops and staggered offsets ? Server Time
16 Nov 2024 01:19:49 EST (-0500)
  Re: #while loops and staggered offsets ?  
From: Ken
Date: 4 Nov 1998 17:14:27
Message: <3640D188.6A14DB43@pacbell.net>
I'll try it out. Thank you Ron.

Ken Tyler


Ron Parker wrote:

> //I switched your loops around so you won't have as many calculations.
>
> #declare x2 =  0;
> #declare z1 =  0;
> #while  (z1 < 10)
>   #declare x1 =  0;
>   #while  (x1 < 10)
>     object{Obj translate <x1+x2,0,z1>}
>     #declare x1 = x1 + 1;
>   #end
>   #declare x2 = 0.5 - x2;
>   #declare z1 = z1 + 1;
> #end


Post a reply to this message

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