pub fn stroke_polyline(
points: &[DVec2],
width: f64,
join: JoinStyle,
cap: CapStyle,
closed: bool,
) -> Result<OffsetResult, OverlayError>Expand description
Sweep an open polyline into a closed region of the given width.
width is the full stroke width, not a half-width: the region extends
width / 2 either side of the path. Stating this explicitly matters because
both conventions are common and silently halving a clearance band is exactly
the kind of error this kernel refuses to make quietly.
Self-intersecting paths are accepted; the crossing is resolved by the union of the swept region rather than rejected.