Suggest item
How can I get the dimensions of an item that can fill the remaining empty space in the box?
i try it with: $packedBox->getRemainingWidth() $packedBox->getRemainingLength() $packedBox->getRemainingDepth();
but it didn't work as I wanted thx!!
Hi @solocolagenos
Are you able to explain a little more about what you are trying to achieve? After a box is packed, there will be all sorts of "spaces" left over there is typically not just 1 leftover space.
The 3 methods above relate to the overall box. For instance if inner box dimensions were 20x30x40 and it was filled with 1 item 18x20x35. Then:
- used(Width/Length/Depth) = 18x20x35 (a hypothetical containing box that would have beens sufficient)
- remaining(Width/Length/Depth) = 2 x 10 x 5 (the difference between the actual box and the hypothetical box).
2x10x5 is an actual space (in a corner) that wasn't used for packing, but as you can see there are other spaces e.g. there is a 2x30x40 and a 20x10x5. The information for those isn't available from BoxPacker, you'd need to do the geometry yourself if you want to know them, bearing in mind that spaces overlap and that might be important.
Does that help?
Hi @solocolagenos
Are you able to explain a little more about what you are trying to achieve? After a box is packed, there will be all sorts of "spaces" left over there is typically not just 1 leftover space.
The 3 methods above relate to the overall box. For instance if inner box dimensions were 20x30x40 and it was filled with 1 item 18x20x35. Then:
- used(Width/Length/Depth) = 18x20x35 (a hypothetical containing box that would have beens sufficient)
- remaining(Width/Length/Depth) = 2 x 10 x 5 (the difference between the actual box and the hypothetical box).
2x10x5 is an actual space (in a corner) that wasn't used for packing, but as you can see there are other spaces e.g. there is a 2x30x40 and a 20x10x5. The information for those isn't available from BoxPacker, you'd need to do the geometry yourself if you want to know them, bearing in mind that spaces overlap and that might be important.
Does that help?
Thanks for answering. Could you know what the dimensions of the largest remaining space would be? (with more volume)