Heuristic 2D rectangle packing algorithm
Used for:
packing as much rectangles as possible in convex & concave containers
"A heuristic approach for packing rectangles in convex regions" by Andrea Cassioli, Marco Locatelli"
(Paper)
liblbfgs
optimizer and Java liblbfgs
wrapperPacking inside triangle
Note:
yellow color denotes elements fully inside the container
Packing inside custom shape #1
Packing inside custom shape #2