mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-30 12:47:13 -06:00
Pattern, art and auto-corner brushes used to flatten the art into chords wherever the path bends, so Expand Brush Strokes left polygons with hundreds of corner anchors. Each art segment now comes out as cubics matched to the bent segment's ends and derivatives and halved until they hold to a quarter of the flattening tolerance (never below the 0.05 pt the path is flattened to). Anchors stay anchors, lines that stay straight stay lines, and the halving is capped in depth and in anchors: where the fit would take more anchors than the chords, or the map gives points that are not finite, that subpath falls back to the chords, now without the non-finite points. A 4-anchor circle tile round a 400 pt circle: 68 anchors a tile -> about 9, all with handles, 0.04 pt from the bent art against 0.19 for the chords; stroke_pieces 169 -> 244 us for the 31-tile stroke.