mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 20:01:07 +01:00
Whether a profile segment can reuse the flattened path's points was decided from the whole subpath's point density, so a long straight run beside a densely flattened curve counted points it did not have: the run drew its width as one straight chord across the segment. Compare the width curve with the points inside the segment instead, and keep reusing them where they already follow it. Reported in review of #8846. A 200 pt line whose second half is 128 collinear pieces now draws the same lens outline as the two-segment line (1167.2 pt² against 1168.3 pt²), where the density shortcut left it at 1000.6 pt².