I implement a 2d-bin packaging algorithm in canvas. My task is to place the rectangles as optimal as on the canvas.
shown how to do this: http://incise.org/2d-bin-packing-with-javascript-and-canvas.html
BUT, it starts from the origin. I would like to say an algorithm where to place the rectangle and that the next one will not be on it.
What needs to be changed in the code?
Is there any other algorithm to use?
Elikd
source share