Skip to main content

revolve

Function revolve 

Source
pub fn revolve(
    model: &mut NamedModel,
    namer: &Namer,
    solid: Option<&str>,
    axes: &CoordinateSystem,
    from: f64,
    to: f64,
    loops: &[SweepLoop],
) -> GeopResult<BuiltBody>
Expand description

Revolves loops — the first the outer loop, counter-clockwise in (r, z), the rest holes in it, clockwise — from from to to degrees around axes (see revolution): into a solid named solid, its start cap at from, or, without one, into sheets. Either way round, the solid comes out with its faces pointing outwards.

Named after the profiles’ curves X and joints P (see Profile and sweep): N(X,q) the face X sweeps through span q, N(X,a) the edge X is at station a, N(P,q) the arc P sweeps through q, N(P,a) the vertex of P at a — N(P) for a pole — and for a partial turn, the caps N(start) and N(end).