Skip to main content

sew_around

Function sew_around 

Source
pub fn sew_around(
    model: &mut Model,
    faces: &[Shape],
    settled: &[bool],
    tol: Tolerances,
) -> OgeomResult<Sewn>
Expand description

Sew faces of which some already share their edges and vertices with every neighbour and are to be passed through as they stand.

As sew, with each face whose settled flag is set taken as already sewn: it is neither compared nor rebuilt, and comes through as an exact copy of itself into the shell it closes with the others. The question is asked only of the other faces, so a large shell with a few faces to sew costs what those few cost. Where sewing the others would move an edge or a vertex a settled face holds, the faces are sewn as sew sews them, all alike. Unlike sew, nothing the faces share with other shapes is copied first: the edges and vertices kept are edited where they stand.

ยงErrors

As sew, and OgeomError::Construction if settled does not hold one flag per face.