Crate geometry_tools[][src]

Expand description

Efficient implementations for calculating geometry data for game assets using glam.

Functions

calculate_smooth_normals

Calculates smooth per-vertex normals by calculating normals for each face and averaging over the vertices. indices is assumed to contain triangle indices for positions, so indices.len() should be a multiple of 3.