Skip to main content

loft

Function loft 

Source
pub fn loft(
    model: &mut NamedModel,
    namer: &Namer,
    solid: Option<&str>,
    sections: &[Section],
    ends: &Ends,
    guides: &[Chain<NurbCurve3D>],
) -> GeopResult<BuiltBody>
Expand description

Lofts through sections (see the module docs): closed loops into a solid named solid — capped by the first and last sections — or, without one, into sheets; open chains into sheets only. Its ends may instead be points the loft comes to before its first section and after its last: there it closes in a point instead of a cap (see Apex). The tangent of a smooth loft into an apex is a free choice, as at any end section: from its neighbours (see [through]). Or the loft closes on itself (Ends::Closed), running smoothly on from its last section round to its first, through three sections or more, with no caps: a ring.

Named after the first section’s curves X and joints P and the sections’ names K (see [skin]): the walls N(X) — N(X,K>L) between the sections K and L when there are more than two — the curves at the sections N(X,K), the edges between them N(P) or N(P,K>L), the vertices N(P,K), the caps N(start) and N(end); an apex A is the vertex N(A).