Any reliable polygon normal calculation code?
- by Jenko
Do you have any reliable face normal calculation code?
I'm using this but it fails when faces are 90 degrees upright or similar.
// the normal point
var x:Number = 0;
var y:Number = 0;
var z:Number = 0;
// if is a triangle with 3 points
if (points.length == 3) {
// read vertices of…