POV-Ray : Newsgroups : povray.general : about #debug : Re: about #debug Server Time
6 Apr 2026 17:01:32 EDT (-0400)
  Re: about #debug  
From: GioSeregni
Date: 6 Apr 2026 14:55:00
Message: <web.69d4015df5eb3fcdb9ac97ab59126100@news.povray.org>
"ingo" <nomail@nomail> wrote:
> "GioSeregni" <gms### [at] hotmailcom> wrote:
> > Nothing, I think the most efficient solution is to ignore float comparisons,
> > much less divisions.
>
> something like:
>
> ##for floats:
> ## Almost equal.
> proc ae(a, b): bool
> const Epsilon = 0.000001
> return abs(a - b) <= Epsilon
>
>
> #for tw vac's a & b
> proc ae(a,b): bool
> return ae(a.x, b.x) and ae(a.y, b.y) and ae(a.z, b.z)
>
>
> depending on the lang.
>
>
> ingo

does not works
the triangles can to be
a.x - a.y - a.z
VS
b.y . b.z - b.a

and other cases ....


Post a reply to this message

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