Skip to main content

make_pipe_skinned

Function make_pipe_skinned 

Source
pub fn make_pipe_skinned(
    model: &mut Model,
    spine: &Shape,
    radius: f64,
    tolerance: f64,
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Sweep a circular profile along a free-form spine, skinned.

Frames along the spine are rotation-minimizing (the double-reflection construction), so the tube neither twists nor kinks where the spine bends; the skin holds the sampled circles to tolerance, and the caps sit perpendicular to the spine’s ends.

§Errors

As make_pipe, plus OgeomError::NotDone if the skin cannot reach the tolerance.