POV-Ray : Newsgroups : povray.beta-test : min/max stop working in functions? : Re: min/max stop working in functions? Server Time
4 Nov 2024 19:18:01 EST (-0500)
  Re: min/max stop working in functions?  
From: Thorsten Froehlich
Date: 23 Sep 2001 12:47:46
Message: <3bae1232@news.povray.org>
> In article <3bade3d7@news.povray.org> , "Elias Pschernig" 
> <eli### [at] aonat> wrote:
>
>> I downloaded beta3, and my scenes stopped working. I could track it down to
>> this: min and max seem to only use the first argument instead of comparing..
>
> Yes, this is a new bug that *only* happens if the there are constants in
> some functions line min and max.  So the workaround is to use the calculated
> value instead of a function to find it.  I know this won't workaround all
> cases, but it should for for a lot of cases.

To be more precise: All built-in function (not to confuse with the functions
in "functions.cin"!!!) that take more than one argument will return the
first argument if the first argument is constant.  Further, radians and
degrees functions also return the input rather than the converted output if
the input is constant.

One workaround is to simply add i.e. "x-x+123" to replace "123".  Of course,
this bug will be fixed in the next beta.


    Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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