1) First find the box with the longest width
2) Find the box with the tallest height
3) If a box is found that is both #1 and #2 above, then that is the "biggest" box so far
do you have standard sizes of red boxes?
do you calculate only in 2d or also in 3d?
The calculations to do this:
3D Loading plan calculation for loading objects into containers, trucks and wagon cars | packer3d.com
trucks/cargo trucks. wagon cars.www.packer3d.com
It's a lovely challenge that seems so simple, but is so complex.
Unless you have a really good reason for picking a solution like this, I would absolutely recommend doing something less compex (that might have the downside of wasting a bit of space or other resources).
It's open source, so it should be in there somewhere:how is he doing it
It's open source, so it should be in there somewhere:
https://github.com/libgdx/libgdx
https://github.com/crashinvaders/gdx-texture-packer-gui
I wasn't suggesting a copy-paste. I was suggesting reading the code to understand the logic behind it.
Yes.Explanation of 2d problem with a solution (not “the” solution) with a Java version linked in the comments section by Alex Bonilla.
I was working on a similar problem back when Trump won his first election. If you get stuck, I could dig up the code, work out wtf I did, and translate any bits that might be useful to you (from PowerBasic to B4X).you have several boxes of different sizes. now you need to find the size of 1 big box that will hold all boxes inside with a space between each box.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?