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:
| entity | name |
|---|---|
wall swept by X through span q | N(X,q), or N(X) for an unnamed span |
X at station s | N(X,s); N(X) for a curve on the axis |
lateral edge swept by P through q | N(P,q), or N(P) |
vertex of P at s | N(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.