Nat

06-14-2001, 04:37 PM

Hello everyone,

I'm attempting to calculate the normal for a given triangle and I'm having an issue. My normal point just seems off, instead of being in the center of the triangle and 1.0f distance away from the triangle in the direction it is facing, it is lying right on the triangle very close to one of the points. I have a picture below, the red point is the normal point, the yellow points are the 2 vectors (b-a, c-a).

http://www.teamgoat.com/nat/normal.jpg

and I also have the code I'm using to calculate the normal at the next url

http://www.teamgoat.com/nat/normal.cpp

I can't seem to get this to work =( Any help / sudgestions are GREATLY apretiated.

Thank You!!

Nat

I'm attempting to calculate the normal for a given triangle and I'm having an issue. My normal point just seems off, instead of being in the center of the triangle and 1.0f distance away from the triangle in the direction it is facing, it is lying right on the triangle very close to one of the points. I have a picture below, the red point is the normal point, the yellow points are the 2 vectors (b-a, c-a).

http://www.teamgoat.com/nat/normal.jpg

and I also have the code I'm using to calculate the normal at the next url

http://www.teamgoat.com/nat/normal.cpp

I can't seem to get this to work =( Any help / sudgestions are GREATLY apretiated.

Thank You!!

Nat