betterway-tinyman / packer

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

Fixed MIN_Z updated too soon causing collisions and negative Y coordinates #12

Open Ov3rlo4d opened 7 years ago

Ov3rlo4d commented 7 years ago

Hi, during some testing i noticed that some boxes were intersecting eachother, for example:

`

`

This solves the problem in the c++ side, but the same problem seems to appear elsewhere.

The second commit fixes the problem mentioned in issue #9 (again, only in c++,)