Function dominant_axis

Source
pub fn dominant_axis(normal: Point3) -> usize
Expand description

The dominant axis of normal, dropped when projecting to 2D.

Dropping the largest component keeps the projection non-degenerate: the triangle cannot collapse to a line in the remaining two coordinates.