3DContainerPacking icon indicating copy to clipboard operation
3DContainerPacking copied to clipboard

Pack all items - many available boxes

Open noptools opened this issue 3 years ago • 1 comments

David Would you please suggest how one could modify the code so that rather than just packing only one box at a time, that it would have an infinite number of each of the specified containers, and find the 'optimal' (or very good ;) packing of all items, for the minimum total container volume.

noptools avatar Jul 18 '21 23:07 noptools

Pass all known items and boxes into the PackingService.Pack method and first find which container has the highest PercentContainerVolumePacked. You can then get all of the UnpackedItems from there and re-run the PackingService.Pack method with those UnpackedItems (again finding which container has the highest PercentContainerVolumePacked) until all items are packed. In the end, you would have the multiple boxes in which everything was packed in.

mjrichards91 avatar Nov 17 '21 21:11 mjrichards91