pub fn restrict_degree(
model: &mut Model,
shape: &Shape,
max_degree: usize,
tolerance: f64,
tol: Tolerances,
) -> OgeomResult<Built>Expand description
shape with every spline curve and surface of degree above
max_degree refitted at that degree, each within tolerance of what
it replaces, and every trim re-derived. Analytic geometry has no degree
to restrict and stays as it is.
ยงErrors
OgeomError::Construction if
max_degree is zero or tolerance is not a distance;
OgeomError::NotDone if a fit cannot
reach tolerance; as ogeom_algo::restate_geometry.