mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 22:21:59 +00:00
The previous commit took the spans from how far each piece bends away from the split whenever both handles there were within ONE_CURVE of the anchor. A curve that barely moves at the split but doesn't bend there (a straight one, say) has short handles and no bend, so that gave 0/0 and the side fell back to the polygon shares. Now the spans come from whichever pair is the longer: the handles, or the bends (which go with the squares of the spans). The check of every piece against the rebuilt curve is unchanged. Test: a_split_curve_keeps_the_top_object_patch_where_it_barely_moves_and_runs_straight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>