[info-performer] Re: Problem with normals and TRISTRIPS

Date view Thread view Subject view Author view

From: Jurgen Rusch (jurgen.rusch++at++philips.com)
Date: 09/23/2005 01:11:21


Olivier,

I looked at your code which seems to be fine except
for a very small detail: I think you forgot an 'else'...

Your original code contains these 2 lines:

   if (k%2==0) lNormal.cross(lEdge2, lEdge1);
               lNormal.cross(lEdge1, lEdge2);

while I'm pretty sure you made a typo and actually meant:

   if (k%2==0) lNormal.cross(lEdge2, lEdge1);
   else lNormal.cross(lEdge1, lEdge2);

With kind regards,

Jurgen Rusch

SAVG-team (Support for Audio, Video & Graphics)
Philips Research Laboratories
Eindhoven, The Netherlands


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Sep 23 2005 - 01:13:28 PDT