POV-Ray : Newsgroups : povray.advanced-users : Macros in Macros? : Re: Macros in Macros? Server Time
29 Jul 2024 06:13:44 EDT (-0400)
  Re: Macros in Macros?  
From: Tim Nikias
Date: 21 Oct 2002 18:14:41
Message: <3db47c51$1@news.povray.org>
I should have come up with this way earlier. Would
have made my task much easier... Ah well, it just pays
to keep learning...

Regards,
Tim

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde

> Yes, I have written some includes like this. I have used this technique to
> create a pseudo SDL with a scene file in order to make my macro calls
> shorter. Something like this:
>
> #macro Make_Tri (Tons of parameters)
>
> #macro Start_Mesh (Tons of parameters)
>   #macro Make_Triangle (Basic parameters)
>     Make_Tri (Basic parameters + tons of parameters)
>   #end  //  #macro Make_Triangle
> #end  // #macro Start_Mesh
>
> // *******
> // **usage
> // *******
>
> Start_Mesh (Tons of parameters)
> Make_Triangle (Basic parameters 1)
> Make_Triangle (Basic parameters 2)
> etc.
> etc.
>
>    -Shay
>


Post a reply to this message

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