MaxRects Bin Packing by Skn3

Monkey Forums/Monkey Code/MaxRects Bin Packing by Skn3

Belimoth(Posted 2013) [#1]
If you are Skn3: I hope you don't mind me touching your code.

If you are not Skn3: Here is a monkey conversion of the MaxRects code that Skn3 posted here. I've converted it to the best of my understanding, but I still get node-related error messages occasionally... I'll continue trying to fix it but if anyone has some insight to share that would be cool too.
EDIT: I think I've found the issue.

Here it is so far:


Here is an example:

Click to make a shape and add it to the bin, space to repack. Haven't figured out exactly how sheets work yet.