pub fn sweep_prism_along(
outline: &[[f64; 2]],
from: f64,
to: f64,
path: &FrameCurve,
) -> Result<BrepSolid, KernelRefusal>Expand description
The whole sweep of a prism carried by a frame along a planar curve (its
axis along the frame’s up): the prism outline (a convex polygon in the
start frame: first coordinate along the start tangent, second along
up × tangent) between from and to along up. The motion is planar, so the
sweep is the plane region the moving outline covers, extruded. That region
is found exactly: its boundary lies on the outline’s corner paths, the paths
of each edge’s grazing point (where the edge’s normal is square to the
velocity), and the outline’s edges at the two ends; these are split where
they meet, and a piece is kept where one side of it is covered and the other
not (folds, where a corner digs past a side, come out right).