POV-Ray : Newsgroups : povray.general : #while loops and staggered offsets ? : Re: #while loops and staggered offsets ? Server Time
16 Nov 2024 01:19:15 EST (-0500)
  Re: #while loops and staggered offsets ?  
From: Ken
Date: 5 Nov 1998 02:21:03
Message: <364151A7.9B5E9B8E@pacbell.net>
Thank you very much.

Ken Tyler

Margus Ramst wrote:

> x1 goes from 0 to 10 each row, that's why you get this effect when using it for
> Y position. Try this:
>
> #declare Obj = box{-1,1 scale<.9,.2,1.5>pigment{rgb 1}}
>
> #declare x2 =  0;
> #declare y1 =  0;
> #declare z1 =  0;
> #while  (z1 < 10)
>         #declare x1 =  0;
>         #while  (x1 < 10)
>         object{Obj translate <x1+x2,y1,z1>}
>         #declare x1 = x1 + 1;
> #end
> #declare x2 = 0.5 - x;
> #declare y1 = y1 + .2
> #declare z1 = z1 + 1;
> #end


Post a reply to this message

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