|  |  | Rune wrote:
> 
> Using MySpline(0).x is not an option, because I use the same macro to handle
> floats and vectors, and I don't want my vectors to be converted to floats.
> 
Well, if I understand the problem correctly, this should avoid converting the
values to float when they shouldn't be (untested!):
#if(MySpline(n).x = MySpline(n).y & MySpline(n).x = MySpline(n).z)
#declare Val = 0 + MySpline(n).x; //float
#else
#declare Val = <0,0,0> + MySpline(n); //vector
#end
-- 
Margus Ramst
Personal e-mail: mar### [at] peak edu  ee
TAG (Team Assistance Group) e-mail: mar### [at] tag  povray  org Post a reply to this message
 |  |