Skip to main content

sweep

Function sweep 

Source
pub fn sweep(
    model: &mut NamedModel,
    namer: &Namer,
    path: &Path,
    loops: &[SweepLoop],
    solid: Option<&str>,
) -> GeopResult<BuiltBody>
Expand description

Sweeps loops along path: into a solid named solid, or, without one, into sheets — a shell of walls per loop, with no caps.

A solid’s loops are closed, the first its outer boundary and the rest holes, each oriented as the module docs say; along an open path it gets a cap at either end, N(start) and N(end). The rest is named after the profile’s curves X and joints P (see Profile) and the path’s station names s and span names q:

entityname
wall swept by X through span qN(X,q), or N(X) for an unnamed span
X at station sN(X,s); N(X) for a curve on the axis
lateral edge swept by P through qN(P,q), or N(P)
vertex of P at sN(P,s); N(P) for a pole

The solid’s shells are the connected sets of faces: one, unless a full turn leaves a hole — or a pocket closed off by the axis — sweeping a void of its own.