POV-Ray : Newsgroups : povray.binaries.images : Why does this not work? : Re: Why does this not work? Server Time
18 Aug 2024 08:23:40 EDT (-0400)
  Re: Why does this not work?  
From: Chris S 
Date: 14 May 2001 09:42:06
Message: <3affe0ae$1@news.povray.org>
It's looks like you're forgetting to reset "FZpos" before the second loop.

-Chris-

Thomas Lake <tla### [at] homecom> wrote in message
news:3aff2d0a$1@news.povray.org...
> I have the following code to produce a place of blocks, why is it that it
> only produces 1 row?
>
> #declare FStoneH = 1;
> #declare FStoneW = 6;
> #declare FStoneL = 6;
>
> #declare FMortar = 0.2;
> #declare FZtrans = FStoneL+FMortar;
>
> #declare TunHight = 30;
> #declare TunWidth = 60;
> #declare TunLength = 200;
>
> #declare FZpos = 0;
> #declare FloorTrans = (TunWidth/2-FStoneW/2);
> #declare FloorWidth = 0;
>
> #while (FloorWidth < TunWidth )
>
>   #while (FZpos < TunLength)
>
>     object{
>       Flagstone
>       translate <FloorTrans,0,FZpos>
>
>     #declare FZpos = FZpos+FZtrans;
>     }
>
>   #end
>
> #declare FloorWidth = FloorWidth+FStoneW;
> #declare FloorTrans = FloorTrans-FStoneW/2;
>
> #end
>
>


Post a reply to this message

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