betterway-tinyman / packer

3D Bin Packing with multiple Wrappers (Boxes)
BSD 3-Clause "New" or "Revised" License
123 stars 51 forks source link

Strange Result for same Data #8

Closed alexschled closed 7 years ago

alexschled commented 7 years ago

Hello,

I just tried your BoxPacker, but unfortunately I can't understand the result for following two XML files:

`

<wrapperArray>
    <instance name="Large" price="102" width="59" height="59" length="40.5" thickness="0" type="wrapper" />
    <instance name="Middle" price="101" width="58" height="29" length="40.5" thickness="0" type="wrapper" />
    <instance name="Small" price="100" width="40.5" height="29" length="29" thickness="0" type="wrapper" />
</wrapperArray>

`

And the same file here, only the position of the Items has changed:

` <instance name=„Item2" width="1750" height="1750" length="2150" type="product" /><instance name=„Item3" width="1025" height="1630" length="1083" type="product" /><instance name=„Item1" width="950" height="1500" length="1500" type="product" /><instance name=„Item4" width="950" height="1800" length="608" type="product" />

` The result is a different: With the first XML the Items fits into one large Box. With the second XML the system suggest a big one and 2 small boxes Why is this?
samchon commented 7 years ago

Because the item1 of top and bottom are different.

Category Width Height Length
Top 9.50 9.5 10.0
Bottom 950 1500 1500