mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 20:01:07 +01:00
Sample a profile until the straight line between samples stays within the outline tolerance, in points, and fit the sampled edges at that same tolerance. A profiled outline now covers the same area as the shape before the smoothing (star with Wave: 15597.7 pt² against 15595.4 pt² on the same fixture), while staying G1 cubics rather than one cubic per flatten step. Profile interpolation again takes each run's own secant slope at its ends, so a preset draws the shape it drew before the smoothing work.