Function reduce_surface_degree_u

Source
pub fn reduce_surface_degree_u(
    surface: &BSplineSurface,
    tolerance: Scalar,
) -> GeomResult<BoundedSurface>
Expand description

Lower the surface’s u degree by one, within tolerance, or refuse.

Only a surface already representable at the lower degree reduces cleanly; one that needs its degree is refused. The result is in Bezier form along u. Rational surfaces are refused, as for curves.

§Errors

An invalid or rational surface, a u degree below 2, a tolerance that is negative or not finite, or a deviation bound above tolerance (GeomError::Degenerate).