Skip to main content

make_torus

Function make_torus 

Source
pub fn make_torus(
    model: &mut Model,
    frame: Frame,
    major: f64,
    minor: f64,
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Build a torus in frame: major from the axis to the tube’s centre, minor the tube’s own radius.

§Errors

OgeomError::Construction if either radius is not finite and positive.