|
|
the following
----------------------------------------
#declare SphereInside=function(x,y,z,p,r) {
select( vlength(<x,y,z>-p)-r),
0,1
)
}
----------------------------------------
gives me:
----------------------------------------
select( vlength(< <----ERROR
Parse Error: Expected 'operand', < found instead
Returned from renderer with error status
----------------------------------------
how do have to correct this ?
I think, it is clear, what I want to do ... and: Yes, I need this as a function, NOT a
macro!
BTW: I also tried it with (sqrt((x-p.x)^2+(y-p.y)^2+(z-p.z)^2+))
How can I do ?
Post a reply to this message
|
|