Skip to main content

make_pipe

Function make_pipe 

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

Sweep a circular profile of radius along a spine edge.

A straight spine gives a cylinder, a full circular spine a torus, an arc a torus segment. The history generates the solid from the spine.

ยงErrors

OgeomError::Construction if the spine is not straight or circular, the profile radius is not usable, or the tube would swallow its own spine.