mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 13:08:59 +00:00
The Smooth tool measured the turn around each corner by walking at most 256 segments from the anchor, and did not keep an anchor as a corner when twice the reach lay farther than that. A corner of a path cut into short segments was rounded off: an open path with 0.05 pt segments at the default 12 pt reach, or a square in 0.25 pt segments with a 40 pt reach. The walk now has no segment limit. Each segment's length is measured once per path, and the lengths are added up in blocks of 2, 4, 8 and more segments, so finding the point a reach away skips whole blocks and measures only the segment it lands in. Each block adds up only its own segments, so short segments keep their lengths next to very long ones.