pub fn make_prism_tapered(
model: &mut Model,
profile: &Shape,
vector: Vector,
taper: f64,
tol: Tolerances,
) -> OgeomResult<Built>Expand description
Sweep a planar face into a tapered prism: every wall leans by taper.
The draft-prism semantics: each section is the profile’s own offset at
the rate the taper names (the outer loop outward, holes inward), so a
positive taper widens the far end and narrows every hole, and each wall
makes exactly taper with the travel. The far ring is genuinely new
topology: a taper breaks the plain prism’s the-top-is-the-bottom-moved
invariant, so corners re-solve where the offset lines meet, straight
walls come out as exact tilted planes, and a full circular hole’s wall
is an exact cone.
§Errors
OgeomError::Construction if the
profile is not a planar face, the travel is not square to it, a profile
edge is neither straight nor a full circle (the curved-wall taper needs a
fitted ruling; see docs/PARITY.md, offset.sweeps), or the taper collapses a
loop over the height.