Skip to main content

compute_curvatures_from_mesh

Function compute_curvatures_from_mesh 

Source
fn compute_curvatures_from_mesh(
    points: &[Point3D],
    triangles: &[Triangle],
    boundary: &[bool],
) -> (Vec<f64>, Vec<f64>, Vec<f64>)
Expand description

Compute Gaussian and mean curvatures using discrete differential geometry

Based on Meyer et al., “Discrete differential-geometry operators for triangulated 2-manifolds”

Boundary vertices (on the triangulation free boundary) get GC=0, MC=0 to match MATLAB’s curvatures.m behavior.