POV-Ray : Newsgroups : povray.unofficial.patches : megapov bug: condition inside declaration of function{pigment{}} : Re: megapov bug: condition inside declaration of function{pigment{}} Server Time
8 Jul 2024 15:44:07 EDT (-0400)
  Re: megapov bug: condition inside declaration of function{pigment{}}  
From: Wlodzimierz ABX Skiba
Date: 22 Aug 2001 08:03:25
Message: <3b839f8d@news.povray.org>
Scott Hill wrote in message <3b839cb9@news.povray.org>...
>"Wlodzimierz ABX Skiba" <abx### [at] abxartpl> wrote in message
>news:3b837efb@news.povray.org...
>>
>> error: No matching } in pigment, # found instead.
>>
>
> I've had this problem - it seems 'function' uses its own parsing
> routines which don't support the entire set of POV keywords...

This way it should duplicate parsing code for objects{} and pigments{}.
Impossible. IMO there is some switch for exlusion of #directives during parse of
functions{}

> The solution is to do something like this :

I know, I know, but thanks for good intentions :-)

--
#macro Sig(A,B,X)_(A,B)_(B,X)_(X,A)#end#macro _(A,B)cylinder{<A.x,A.y,3>,<B.u,
B.v,3>.1,9}#end global_settings{max_trace_level 9}light_source{0 1}camera{up y
*4right-3*x}blob{_(<3,1>,<1,-5>)_(<2,-2>,<4,-2>)Sig(x,<-1,1.5>,<1,3>)_(z-1,z-4
)pigment{rgb 1}}box{-3 3pigment{rgb 0}finish{reflection 1}hollow} // POV-Ray31


Post a reply to this message

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