|
|
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/
Post a reply to this message
|
|