mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 22:21:59 +00:00
Part of #2224. A Smooth tool drag only refitted the anchors in its reach within Fidelity, so a wobble wider than Fidelity stayed, and a second drag over the same place changed nothing. Repeated refits also drifted away from the path, and a drag over a whole closed path left a corner at its first anchor. - path.smoothRegion now smooths the stretch in reach along its length with a Gaussian whose spread is a third of the reach, then refits it within Fidelity. The run's outer end points and handles stay fixed. - Each refit stays within twice the distance the smoothing moved the path (at least a tenth of Fidelity), so repeated drags do not drift (SimplifyOptions::smooth_moved_only). - A whole closed path is smoothed across its start as a loop, so a bump at the first anchor is smoothed like any other and no corner is left. Object > Path > Smooth smooths a closed path across its start the same way.