POV-Ray : Newsgroups : povray.binaries.images : City SSC WIP 2 : Re: City SSC WIP 2 Server Time
14 Nov 2024 12:22:09 EST (-0500)
  Re: City SSC WIP 2  
From: Christopher James Huff
Date: 17 Feb 2004 19:09:48
Message: <cjameshuff-881346.19102217022004@news.povray.org>
In article <4032345b$1@news.povray.org>,
 Dave Matthews <dma### [at] nospamnet> wrote:

> Hmm.  How do you know that, for example, some end "}" are unnecessary? 
> (I assume that, as usual, I'm missing something in the manual.)

All { braces must have a matching } brace. This scene just puts the 
opening braces in the macro, and the closing braces after the calls to 
that macro. Cleanly indented, the code's a lot easier to understand:

#macro C()
    function {
        pigment {crackle
#end

#local A = C() solid}}

#local B = C() }}

This is equivalent to:

#local A = function {pigment {crackle solid}}

#local B = function {pigment {crackle}}

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

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