Skip to main content

face_normals

Function face_normals 

Source
pub fn face_normals(
    solid: &SolidDisplay,
    face_index: usize,
) -> Option<(Vec<[f64; 3]>, bool)>
Expand description

The outward normals one face of solid presents in WORLD space: one for a flat face (its triangles’ common normal, signed by the mesh normals), else every vertex normal of its triangles. None for a face with none.