packMaxRectangles
packMaxRectangles(width, height, boxes) ⇒ boolean
Packs AABB2 boxes into defined bounds
Based on paper "A Thousand Ways to Pack the Bin - A Practical Approach to Two-Dimensional Rectangle Bin Packing" 2010 Jukka Jylänki Method presented called Maximal Rectangles
Kind: global function
Returns: boolean
- true if packing was successful, false otherwise
Param | Type |
---|---|
width | number |
height | number |
boxes | Array.<AABB2> |