POV-Ray : Newsgroups : povray.general : Question About Macros : Re: Question About Macros Server Time
10 Aug 2024 23:27:57 EDT (-0400)
  Re: Question About Macros  
From: Peter Popov
Date: 14 Oct 1999 09:41:51
Message: <br8FOOQyg7sodM4J2VVh2HjQtRDo@4ax.com>
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.