POV-Ray : Newsgroups : povray.advanced-users : smooth_triangle normals : Re: smooth_triangle normals Server Time
16 Apr 2024 13:56:49 EDT (-0400)
  Re: smooth_triangle normals  
From: Bald Eagle
Date: 1 Oct 2020 16:35:01
Message: <web.5f763c8daf8e23f91f9dae300@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:

> > Still perplexed about why normal vector values would cause POV-Ray to report
> > degenerate triangles.
>
> Have you verified that none of the normal vectors are zero vectors or have a
> very short length ?

I have not - I was mostly just trying to get the code to _work_ in the short
blocks of time I had available to struggle with it.   I did not think it was
possible or probably, as the normal vector was calculated as a _sum_, implying
that the sum of all the vectors would have had to be very small or zero.  And I
was adding more vectors to code that previously worked....

But it had occurred to me to do that and I should do the checks.
I was just surprised that the normal triggered a degenerate triangle warning.

> Does POV-Ray accept the triangles in the mesh when you do not add the normal
> vectors ?

Yes.  In terms of the fact that I was using union {}, not mesh {}.


> - Or write code that does not create out of range indices...

That's just a patently absurd assertion.  ;P


Post a reply to this message

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