POV-Ray : Newsgroups : povray.advanced-users : #while loop help : Re: #while loop help Server Time
30 Jul 2024 00:18:26 EDT (-0400)
  Re: #while loop help  
From: Marc-Hendrik Bremer
Date: 1 Sep 2000 18:10:47
Message: <39b02967@news.povray.org>
You have to reset count2 within the first #while-loop. It is at 26 after the
first loop an remains there.

Todd Taylor schrieb in Nachricht <39b027fe$1@news.povray.org>...

>#declare grout_size=.05;
>#declare TileWidth=2;
>#declare RoundEdgeWidth=.05;
>#declare Count1=-25;
>#declare Count2=-25;
>
>#while (Count1<=25)
> #while (Count2<=25)
>  object { Tile
>   translate
><Count1*(1.5*TileWidth+2*grout_size+2*RoundEdgeWidth),0,Count2*(sqrt(3)+2*g
r
>out_size+2*RoundEdgeWidth)>
>  }
>  #declare Count2=Count2+1;
> #end
> #declare Count1=Count1+1;
>#end
>


Post a reply to this message

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