mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 07:45:38 +00:00
exact_merge looked at every input curve on each merge attempt, so tidying the output of a sweep cost the number of input curves for each joint it tried to remove. It now takes its candidates from Tidy::curves_around, the bounds index that repair already uses, and tests only the curves whose bounds hold both ends of the run. A new test cuts one curve of a 1,000-curve row in three and checks that the merge rebuilds it while testing at most four curves; before the change it tested 1,002.