|
|
On 27 Oct 2001 07:10:03 -0400, ingo <ing### [at] homenl> wrote:
> in news:3bda2a73@news.povray.org Mark Wagner wrote:
>
> > In section 6.2.2.1, it says:
> > "Declarations, like most language directives, can appear anywhere
> > in the file - even within other statements. "
> >
> > However, there is an exception to this:
>
> If I understood ABX' posts, he also has problems with this line.
not only me :-)
http://news.povray.org/3BB82B3F.18814A7F@gmx.de
> A simple solution would be:
>
> "Declarations, like most language directives, can appear almost
> anywhere in the file - even within other statements. "
>
> This is not a solution out of laziness, but I hasitate to include one
> or two examples of exceptions. If sombody can put together a list of
> *all* exceptions, or can come up with some general text that clearly
> defines in what sort of situations exceptions may happen, I'll include
> it.
without writing exceptions IMO this setence could be more accurate
ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35
Post a reply to this message
|
|