POV-Ray : Newsgroups : povray.general : troubles with functions in 3.5 ... : troubles with functions in 3.5 ... Server Time
7 Aug 2024 09:23:59 EDT (-0400)
  troubles with functions in 3.5 ...  
From: jan Walzer
Date: 12 Oct 2001 12:35:58
Message: <1103_1002904567@iq>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.