|
|
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
|
|