pub fn fill_boundary(
bottom: &Curve,
top: &Curve,
left: &Curve,
right: &Curve,
samples: usize,
tolerance: f64,
tol: Tolerances,
) -> OgeomResult<Fitted<BSplineSurface>>Expand description
Fill the region bounded by four curves with a fitted patch: the transfinite Coons blend of the boundaries, sampled and fitted, its error reported.
The curves must close corner to corner in the order given (bottom
runs with u, top above it, left and right with v), each
traversed over its own domain. The patch is fitted to the Coons surface
by fit_surface_sampled, starting from samples (at least four) a
side, so the stated error is measured between the samples as well as at
them. The Coons surface itself interpolates the boundaries exactly, so
the fit error bounds the distance between the returned patch’s borders
and the boundary it fills.
§Errors
OgeomError::Construction if the
corners do not meet within tol, plus whatever the fit refuses.