"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmail com> wrote:
> "Bald Eagle" <cre### [at] netscape net> 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
|