mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 22:21:59 +00:00
Split where the curve stops (a cusp), both handles at the split lie on the anchor, so their lengths say nothing of how the curve's parameter divides between the two pieces, and the side fell back to the polygon shares. When both handles lie within ONE_CURVE of the anchor, the spans now come from how far each piece bends away from it (the second derivatives, in proportion to the squares of the spans). The existing check of every piece against the rebuilt curve is unchanged. Test: a_split_curve_keeps_the_top_object_patch_when_split_at_a_cusp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>