Skip to main content

solid_principal_curvatures

Function solid_principal_curvatures 

Source
pub fn solid_principal_curvatures(
    solid: &BrepSolid,
    points: &[Vec3],
    tolerance: f64,
) -> Result<Vec<Option<[f64; 2]>>, KernelRefusal>
Expand description

The principal curvatures [k1, k2], k1 >= k2, at the boundary point nearest each point: positive where the boundary bends away from its outward normal, as on a ball (1 / r both ways); None where that point lies on a crease. A nearest point on an edge or at a vertex is a crease unless every face there shares one tangent plane, and then the curvatures are read on the first of them.