pub fn angular_defect(mesh: &GeoMesh) -> Vec<f64>Expand description
Compute the angular defect at each vertex of the mesh.
The angular defect (discrete Gaussian curvature) at vertex v is:
K(v) = 2π − Σ_f θ_f(v)
where the sum is over all faces containing v and θ_f(v) is the
interior angle at v in face f.
For a closed surface, the Gauss–Bonnet theorem states Σ K(v) = 2π χ.
Returns a vector of length n_vertices with the angular defect at each vertex.