POV-Ray : Newsgroups : povray.general : Question About Macros : Re: Question About Macros Server Time
10 Aug 2024 23:20:48 EDT (-0400)
  Re: Question About Macros  
From: Andrea Ryan
Date: 14 Oct 1999 16:51:07
Message: <3806412C.5325983D@global2000.net>
That won't work if the object needs to be translated different distances
along different axies.
Brendan Ryan

Peter Popov wrote:

> On Wed, 13 Oct 1999 21:33:56 -0400, Andrea Ryan <ary### [at] global2000net>
> wrote:
>
> >    Is it a good idea to include transformations in macros like:
> <code>
> >or let others add object statements and transformations?
> >Brendan Ryan
>
> You should take advantage of the dot "." operator. For example:
>
> #macro Foo (Trans, Rot, Scale) // These are all vectors
>   #local TransZ = Trans.z;
>   ...
> #end
>
> This way you'll pass the macro three times less parameters.
>
> Peter Popov
> ICQ: 15002700


Post a reply to this message

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