Skip to main content

join_seam_columns

Function join_seam_columns 

Source
pub fn join_seam_columns(
    model: &mut Model,
    shape: &Shape,
    tol: Tolerances,
) -> OgeomResult<usize>
Expand description

Make a seam of every edge that holds its column on a closed surface as plain pcurves where the surface’s faces walk it twice, once each way, on two columns a period apart: two faces joined along the surface’s seam, or one face going round it. Returns how many edges were made seams.

The edge’s plain pcurves on the surface, one, or two on one column or a whole period apart, state where the edge stands in the chart. Each walk takes the copy of that column, a whole period over or none, whose ends meet the walk’s neighbouring edges. Where the two walks take different copies, the edge becomes a seam carrying both over one range, each on the side walked its way, and a lookup by surface finds the right one for each walk. An edge whose copies the neighbours do not tell apart, whose walks take one copy, or that the surface’s faces walk other than twice, is left as it is.

Nodes below shape that other shapes hold as well are copied first (Model::unshare), so the repair reaches no other shape.

§Errors

OgeomError::Dangling if the shape or anything it names does not resolve.