mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 05:24:44 +00:00
Giving the keys of a blend whose spine came from Replace Spine anchors of their own flattened and measured the whole spine again for every key, then walked its segments one by one. 1,000 keys on a spine of 4,096 segments flattened it 999 times. The spine is now flattened once into one buffer. A split flattens only its two halves and measures the segments after it again, in order, only as far as the next key, so the arc lengths are summed as before and the keys get the same anchors. A binary search finds each key's segment. A spine so large that its length overflows no longer gets an anchor split at a parameter that is not a number: spreading keys along it returns nothing and leaves it as it was.