mirror of
https://github.com/storytold/cadcraft.git
synced 2026-10-24 10:56:51 -06:00
Polyline extents were the centre line padded by const_width / 2, so per-segment start/end widths never counted: a band built from vertex widths, a taper, or segments of different widths reported the zero-height bounds of the centre line. The bounds now enclose the filled band of every segment as it is drawn: the exact corners of straight segments (tapers included), and both edges of arc segments, sampled along the arc with the width interpolated and widened by the sampling tolerance so they are never too small. The constant width still wins over vertex widths, the end vertex of an open polyline starts no segment, and non-finite or negative widths count as zero. Thin polylines take the same path as before. Fixes #90.