mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 14:17:14 +00:00
When an arriving box that joins everything it overlaps covers an open box to the right and above, and ends higher than it, the open box now keeps only its part below the arriving box's bottom. The sweep's tree holds each open box by its current top, at a place that is either a box's top or just below a box's bottom, so a box can be cut short from above, from below, or both. Any later box that would have met a removed part meets the arriving box instead, which is open at least as long and in the same set, so the groups stay the same. A box held by an open box is not opened and cuts nothing short. 512 boxes, each 1 pt right of and above the one before, or left of and below it, now meet 511 open boxes in the sweep instead of 130,816, with and without transparency.