|
![](/i/fill.gif) |
On Sun, 13 Jan 2002 12:20:20 +0200, Eugene Arenhaus wrote:
>> I didn't understand this paragraph at all. How do #macros and functions
>> "impede parametric generation of scenes and animation"?
>
> Try to pass a macro to a macro?
That's a parser problem. Implementing it requires us to give the parser
more than one token of lookahead, and that's not as easy as it might
appear. There are many things wrong with the current parser, and the
fact that unget is just a flag instead of some kind of expandable data
structure is just one of them.
This and other parser issues are scheduled to be addressed in POV 4.0 in
one way or another.
--
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbt 1}hollow interior{media{emission T}}finish{
reflection.1}}#end Z(-x-x.2y)Z(-x-x.4x)camera{location z*-10rotate x*90}
Post a reply to this message
|
![](/i/fill.gif) |