pub fn curvature(
mesh: &Triangulation,
size: f64,
) -> OgeomResult<Vec<Option<Curvature>>>Expand description
The curvature of mesh at each of its vertices, from the local quadric
over the vertices within size of it, as the module
documentation describes. Computed in parallel; the answers are
the same at any thread count.
None for a vertex no triangle uses, and for one whose neighbourhood
fixes no quadric. The mesh’s own normals, if it has any, are not read:
the faces’ winding gives the outward side.
§Errors
OgeomError::Numeric if size is
not positive and finite or a position is not finite;
OgeomError::Range if a triangle names
a vertex the mesh does not have.