This refactors the BinPacking class to support multiple bins in both the 2D and 3D implementations. The feature request originally surfaced during the Toronto hackathon and subsequently also identified during the workshops.
Changes
moves 2D & 3D bin-packing algorithms to new BinPacker2D/BinPacker3D classes
BinPacking.Pack2D & BinPacking.Pack3D are now small wrappers around the new classes
retains packed indices across multiple bins
3D multiple bins are supported same as 2D, by sequentially packing each bin then moving on to next with remaining, despite CromullentBisgetti library supporting multiple bins. This is because the library makes it very hard to retain indices
fixes #114
This refactors the
BinPacking
class to support multiple bins in both the2D
and3D
implementations. The feature request originally surfaced during the Toronto hackathon and subsequently also identified during the workshops.Changes
BinPacker2D
/BinPacker3D
classesBinPacking.Pack2D
&BinPacking.Pack3D
are now small wrappers around the new classesCromullentBisgetti
library supporting multiple bins. This is because the library makes it very hard to retain indices