|
![](/i/fill.gif) |
Christoph Hormann <chr### [at] gmx de> wrote:
> ssssmemyself wrote:
> > [...]
> > #declare Fn_Vector = function(x,y,z) {
> > Vector_Function(
> > function{0}
> > function{
> > #if (y>RADIUS)
> > 0
> > #else
> > #if (y<-RADIUS)
> > 9.81*4/3
> > #else
> > 9.81*pi*(((y-r)*r*r-1/3*pow(y-r,3))-(-r*r*r-1/3*pow(-r,3)))
> > #end
> > #end
> > }
> > function{0}
> > )
> > }
>
> You have some basic misunderstanding of how use of #if in functions work
> - you can not do render time conditionals this way - use select() for this.
>
> --
> Christoph Hormann
> http://www.tu-bs.de/~y0013390/
Whoops! I guess the #if command works more like C precompilers then. Makes
sense, seeing how it starts with a #.
Post a reply to this message
|
![](/i/fill.gif) |