Skip to main content

polygon_normal

Function polygon_normal 

Source
pub fn polygon_normal(verts: &[Point3]) -> Vec3
Expand description

Compute the normal of a polygon via Newell’s method.

Returns a unit-length normal, or (0,0,1) for degenerate polygons.