|
|
jan Walzer wrote:
>
> the following
>
> ----------------------------------------
> #declare SphereInside=function(x,y,z,p,r) {
> select( vlength(<x,y,z>-p)-r),
> [...]
>
> how do have to correct this ?
Why do you think vlength() is allowed in user defined functions?
> BTW: I also tried it with (sqrt((x-p.x)^2+(y-p.y)^2+(z-p.z)^2+))
>
This should work if you use floats instead of p.x etc.
Christoph
--
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
|