ComputeRemainderWithin only returned the larger of two possible free rectangles, permanently losing usable area on the other axis after each remainder item was placed. Replace the single shrinking box with a list of free rectangles using guillotine cuts so both sub-areas remain available for subsequent items. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 KiB
16 KiB