void vdsCalcTriNormal (vdsTri *t, vdsVec3 normal)

Calculate a triangle's current normal

Documentation

Calculate a triangle's current normal. Calculates a triangle's normal, say for flat-shading, by taking the cross product of two of its edges. Places the result in normal.

Note: This calculates the normal of the triangle as currently simplified! Triangles that don't exist in the current simplification will produce undefined behavior.

alphabetic index hierarchy of classes