POV-Ray : Newsgroups : povray.general : Thanks for the Macros Server Time
16 Nov 2024 15:17:22 EST (-0500)
  Thanks for the Macros (Message 1 to 2 of 2)  
From: Dan Connelly
Subject: Thanks for the Macros
Date: 5 Jul 1998 13:11:00
Message: <359FA595.FAB2BF38@flash.net>
Macros are a wonderful feature.  For example, they
allow me to do something I've wanted to do for a long
time:

   #macro vector_str(V, N1, N2)
     concat(
       "< ",
       str(V.x, N1, N2), ", ",
       str(V.y, N1, N2), ", ",
       str(V.z, N1, N2),
       " >"
     )
   #end

-- 
http://www.flash.net/~djconnel/


Post a reply to this message

From: Shaun Ivory
Subject: Re: Thanks for the Macros
Date: 1 Sep 1998 21:12:25
Message: <35ec8c92.3249762@news.povray.org>
I was hoping against hope that macros would find their way into
povray.

As a programmer, I desperately wanted to use functions to do
repetitive things.  I even wrote several povray preprocessors for my
own use.

How can it get any better?

So, I'd just like to say thanks also!

On Sun, 05 Jul 1998 11:11:01 -0500, Dan Connelly <djc### [at] flashnet>
wrote:

>Macros are a wonderful feature.  For example, they
>allow me to do something I've wanted to do for a long
>time:
>
>   #macro vector_str(V, N1, N2)
>     concat(
>       "< ",
>       str(V.x, N1, N2), ", ",
>       str(V.y, N1, N2), ", ",
>       str(V.z, N1, N2),
>       " >"
>     )
>   #end


Post a reply to this message

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