POV-Ray : Newsgroups : povray.binaries.images : First Post to P.B.I : Re: First Post to P.B.I Server Time
4 Oct 2024 15:12:14 EDT (-0400)
  Re: First Post to P.B.I  
From: Thomas Lake
Date: 6 Apr 1999 21:23:04
Message: <370AA68E.3131514D@home.com>
Ahh I see. I don't know how to program but I do know JavaScript and this is very
similar to the do while loops in JavaScript. Thanks for clarifying.

Spider wrote:

> Macros are easy to use, they are basically a set of operations bundled together.
> To add the use, you can call this set with different in-data.
>
> But before using a macro, It would be best to learn how to code.
>
> A good thing for this would be a #while() loop, stepping with the amount of
> bricks in the wall, multiplying with the offset.
>
> This will create one line. to create more, just add another loop, but in height.
>
> (untested)this should be something like what you want.
>
> #declare nX = 10;
> #declare nY = 5;
> #declare brick = box { <0,0,0>,<1,0.5,1> pigment{ mortarRed }
> #declare offset = 0.5;
>
> #declare Y = nY;
> #while(Y>0)
>   #declare X = nX;
>   #while(X>0)
>     object { brick translate <X*offset,0,Y*offset> }
>     #declare X = X -1;
>   #end
>   #declare Y = Y - 1;
> #end
>
> Margus Ramst wrote:
> >
> > Thomas Lake wrote in message <37094515.5FC05DCC@home.com>...
> > >
> > >>Ken Tyler
> > >>Everyone knows that indenting mortar would be a mad and lunatic
> > >>endeavour beneath even the lowest and unworthy Pov-ray user out
> > >>there.
> > >
> > >What do you mean? Joke?
> > >
> >
> > Long story...
> >
> > Margus
>
> --
> //Spider
>         [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
> What I can do and what I could do, I just don't know anymore
>                 "Marian"
>         By: "Sisters Of Mercy"


Post a reply to this message

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