POV-Ray : Newsgroups : povray.advanced-users : What does povray consider degenerate? Server Time
2 Nov 2024 01:22:33 EDT (-0400)
  What does povray consider degenerate? (Message 1 to 7 of 7)  
From: Warp
Subject: What does povray consider degenerate?
Date: 5 Jun 2000 06:01:51
Message: <393b7a8e@news.povray.org>
About a recent post in p.general:

  When is a triangle degenerate?
  I think that one case is when two of the vertices or all the three are
actually the same point. In this case it would be just an infinitely thin
line or point.
  I faintly remember that povray also considers denerate a smooth triangle
with the vertex normals pointing to different sides of the triangle. Is
this so?
  Any other case?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Josh English
Subject: Re: What does povray consider degenerate?
Date: 5 Jun 2000 11:19:52
Message: <393BC566.2A97A18@spiritone.com>
A cylinder with both ends the same position in space is not a disc but a
degenereate cylinder.
I've gotten this one. I'm pretty sure a box with the same two vectors will
also generate the degenerate error.

A smooth triangle with opposing normals is something different, I think. But
it still won't render.

Josh
Warp wrote:

>   About a recent post in p.general:
>
>   When is a triangle degenerate?
>   I think that one case is when two of the vertices or all the three are
> actually the same point. In this case it would be just an infinitely thin
> line or point.
>   I faintly remember that povray also considers denerate a smooth triangle
> with the vertex normals pointing to different sides of the triangle. Is
> this so?
>   Any other case?
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/

--
Josh English
eng### [at] spiritonecom
"May your hopes, dreams, and plans not be destroyed by a few zeros."


Post a reply to this message

From: Ron Parker
Subject: Re: What does povray consider degenerate?
Date: 5 Jun 2000 14:10:46
Message: <slrn8jns0t.500.ron.parker@linux.parkerr.fwi.com>
On Mon, 05 Jun 2000 08:21:11 -0700, Josh English wrote:
>
>A smooth triangle with opposing normals is something different, I think. But
>it still won't render.

Sometimes it renders.  Sometimes it crashes.  Depends on the compiler
used to build your copy of POV.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Ron Parker
Subject: Re: What does povray consider degenerate?
Date: 5 Jun 2000 14:20:32
Message: <slrn8jnsj7.500.ron.parker@linux.parkerr.fwi.com>
On 5 Jun 2000 06:01:51 -0400, Warp wrote:
>  About a recent post in p.general:
>
>  When is a triangle degenerate?
>  I think that one case is when two of the vertices or all the three are
>actually the same point. In this case it would be just an infinitely thin
>line or point.

Or when they fall in a line, such as x, 2*x, 3*x.  The actual condition is
"when the cross product of P1-P2 and P3-P2 is zero."  Note that this is not
the usual "within epsilon of zero" condition; it must actually be zero.

>  I faintly remember that povray also considers denerate a smooth triangle
>with the vertex normals pointing to different sides of the triangle. Is
>this so?

The comment in triangle.c says

  /* Degenerate if smooth normals are more than 90 from actual normal
     or its inverse. */

where the actual normal is the aforementioned cross product after 
normalization.  The actual test, however, makes more sense: it requires
that the signs of the dot products of the corner normals with the actual
normal must either be all positive or all negative.  In short, what you
said, with the additional requirement that corner normals in the plane
of the triangle are also degenerate.

This calculation, too, ignores epsilon.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: John VanSickle
Subject: Re: What does povray consider degenerate?
Date: 5 Jun 2000 17:50:57
Message: <393C2062.DF49AE46@erols.com>
Warp wrote:
> 
>   About a recent post in p.general:
> 
>   When is a triangle degenerate?

When it starts buying lap dances at the local strip club.

-- 
ICQ: 46085459


Post a reply to this message

From: Josh English
Subject: Re: What does povray consider degenerate?
Date: 6 Jun 2000 12:17:15
Message: <393D2456.662B3779@spiritone.com>
ARGH!  I don't beleive that I missed this one, as well. The cross product
definition is the most inclusive. I should have seen that. We just covered it
in calculus

Josh

Ron Parker wrote:

> On 5 Jun 2000 06:01:51 -0400, Warp wrote:
> >  About a recent post in p.general:
> >
> >  When is a triangle degenerate?
> >  I think that one case is when two of the vertices or all the three are
> >actually the same point. In this case it would be just an infinitely thin
> >line or point.
>
> Or when they fall in a line, such as x, 2*x, 3*x.  The actual condition is
> "when the cross product of P1-P2 and P3-P2 is zero."  Note that this is not
> the usual "within epsilon of zero" condition; it must actually be zero.
>
> >  I faintly remember that povray also considers denerate a smooth triangle
> >with the vertex normals pointing to different sides of the triangle. Is
> >this so?
>
> The comment in triangle.c says
>
>   /* Degenerate if smooth normals are more than 90 from actual normal
>      or its inverse. */
>
> where the actual normal is the aforementioned cross product after
> normalization.  The actual test, however, makes more sense: it requires
> that the signs of the dot products of the corner normals with the actual
> normal must either be all positive or all negative.  In short, what you
> said, with the additional requirement that corner normals in the plane
> of the triangle are also degenerate.
>
> This calculation, too, ignores epsilon.
>
> --
> Ron Parker   http://www2.fwi.com/~parkerr/traces.html
> My opinions.  Mine.  Not anyone else's.

--
Josh English
eng### [at] spiritonecom
"May your hopes, dreams, and plans not be destroyed by a few zeros."


Post a reply to this message

From: Warp
Subject: Re: What does povray consider degenerate?
Date: 8 Jun 2000 07:05:55
Message: <393f7e13@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:
:>when two of the vertices or all the three are actually the same point.

: when they fall in a line

: if smooth normals are more than 90 from actual normal or its inverse.

  Ok, thanks. There seems to be three clear cases when a triangle is
degenerate. My program only checks the first one. I have to add the other
two as well.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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