Skip to main content

make_filling

Function make_filling 

Source
pub fn make_filling(
    model: &mut Model,
    edges: &[Shape; 4],
    samples: usize,
    tolerance: f64,
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Fill the loop edges bound with a fitted patch face.

The four edges must chain head to tail into a closed loop, in order; the first runs along the patch’s u direction. samples is the Coons sampling per direction the fit starts from and tolerance the fit target, measured between the samples as well as at them and the sampling refined where it misses; the fit that cannot meet it refuses with the error it reached.

§Errors

OgeomError::Construction if the edges do not chain into a loop, an edge carries no curve, or the fit misses the tolerance.