asharif / packit4me.com

5 stars 0 forks source link

Different (and less efficient) packing from switching an item's dimensions #26

Open DLDevolus opened 7 years ago

DLDevolus commented 7 years ago

I noticed that despite having the exact same item size, minus the dimension change, I get a less efficient 3D view of boxing. This ends up in a lot of wasted space.

*Also, I believe that the dimensions are width, height, length (as opposed to height, width, length as listed on the API page).

My example--

bin: 
0:100:29x25x43.5

items:
0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5,0:0:1:24x10x5

The above example gave me a very efficient packing with as little space wasted. Now if I switch the dimensions of the item's width and height, this results in a less efficient packing, even though the shape of the item effectively hasn't changed at all--

bin: 
0:100:29x25x43.5

items:
0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5,0:0:1:10x24x5