BoxPacker icon indicating copy to clipboard operation
BoxPacker copied to clipboard

Items are overlapped in some cases which provides incorrect results sometimes

Open AdityaRawat96 opened this issue 3 years ago • 2 comments

Hi @dvdoug,

I loved the BoxPacker that you created and it seems to be working fine most of the times but in certain test cases I have observed that the items are not correctly stacked which results in inconsistent results.

I compared the results with the bin packer provided by - https://www.3dbinpacking.com which shows the 3D representation of packed items and below are the parameters that I used.

image

As you can see it packs the 18 items in a single medium box but when I try the same with BoxPacker implementation the items are packed in a medium (15 items) and a small box (3 items).

image

To further debug the issue I mapped the items from medium box into 3D cubes using threeJS and below are my findings -

image

As you can see some of the items are overlapping and not stacked correctly. You can check my implementation demo here - https://clarteresearch.com/projects/BoxSizeCalculator3D/

Here is the repo for the above demo - https://github.com/AdityaRawat96/BoxSizeCalculator

Thanks!

AdityaRawat96 avatar Sep 19 '22 21:09 AdityaRawat96

Hi @AdityaRawat96

I'll take a look, seems to be case of the first item being placed in a different orientation, and then everything else being a knock-on consequence of that.

Hopefully 🤞 this one should be fairly straightforward, as all items have the same dimensions so there's no issue around sorting, only placement

dvdoug avatar Sep 25 '22 21:09 dvdoug

Hi @dvdoug,

Did you had any suggestion here or fix? Having the same issue for us too..

Thanks

earbor-ai avatar Oct 09 '22 00:10 earbor-ai