POV-Ray : Newsgroups : povray.general : Roots of a function : Re: Roots of a function Server Time
3 May 2024 15:45:18 EDT (-0400)
  Re: Roots of a function  
From: IGM
Date: 29 Sep 2019 11:15:01
Message: <web.5d90c9c5b127c26fe462584c0@news.povray.org>
> 1)
> If thr is 0 the Starting point will be on the prism edge and I'm not
> sure what the trace result might be in that case though expect one would
> want 0.0 as the returned root.

This was actually happening in my script, and the result was that the intercept
was at the other side of the prism, i.e. the last point! It deserve a dedicated
conditional check.

Thanks
igmar


Post a reply to this message

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