Centered bin packing
petitssoldats opened this issue · 1 comments
petitssoldats commented
Hi!
Really nice job on this bin packing method!
I'm trying to tweak your code to get the packing centered around a point instead of [0px,0 px], and not
Do you have an idea on how to make it ?
Thanks :)
olragon commented
I am assuming you are using 2D packing.
You can implement heuristics which it's favor your center point. Heuristic is a class extend from Base
heuristic, main method is calculateScore()
which it's calculate Score
based on free area and box width, height. Lower Score
is better, view more