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: Shay
Date: 21 Oct 2002 18:02:35
Message: <3db4797b$1@news.povray.org>
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

Tim Nikias <tim### [at] gmxde> wrote in message
news:3db16794@news.povray.org...


Post a reply to this message

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