php-laff icon indicating copy to clipboard operation
php-laff copied to clipboard

Stackable option?

Open by225 opened this issue 7 years ago • 3 comments

Hello. It's great that you can see which level the items are on afterward. I need to be able to specify the level, i.e., heavier items need to be restricted to the first level only. Would it be difficult to implement something like this? Thank you.

by225 avatar Nov 28 '18 21:11 by225

Sure it would be possible yet that would require some serious changes. Currently the algorithm is a PHP implementation of "An Efficient Algorithm for 3D Rectangular Box Packing" paper by M. Zahid Gürbüz, Selim Akyokus, Ibrahim Emiroglu and Aysun Güran.

Weight has not been factored in but I suppose it could be added. Contributions are welcome as I'm flooded with work and don't have time at the moment to implement these features. I'm happy to accept contributions and discuss possible implementations though.

mdeboer avatar Dec 02 '18 14:12 mdeboer

Thanks for the response. I will take a closer look at the current code when I get a chance. Really, though, it's not about weight, but just about being able to restrict certain items to the lowest level. Would that make changes any easier?

by225 avatar Dec 02 '18 16:12 by225

Sure would! Will pick this up when I get the time to work on this again.

mdeboer avatar Dec 02 '18 22:12 mdeboer