POV-Ray : Newsgroups : povray.advanced-users : Conditional expressions in functions : Re: Conditional expressions in functions Server Time
20 Apr 2024 08:40:39 EDT (-0400)
  Re: Conditional expressions in functions  
From: Kenneth
Date: 28 Feb 2021 08:30:01
Message: <web.603b9a1c8a182d6dd98418910@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> I was also trying to minimize the processing of vectors, and executed the
> following:
>
> #declare f_Axis = function (Vector) {select (Vector, x, y, z)}
>
> Which worked, but did not give me the expected results.
> My debug statements with str complained that it expected a value, but a vector
> was encountered instead...
>

For your #debug, did you try just  str?  or   vstr (for vectors, to see what
would happen)? This is probably tangential to you're main concern, but it's
worth a try...

example...
#debug concat("\n","my vector = <",vstr(3,Vector,", ",0,5),">","\n")


Post a reply to this message

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