项目作者: tomazas

项目描述 :
Heuristic 2D rectangle packing algorithm
高级语言: Processing
项目地址: git://github.com/tomazas/convex-rect-pack.git
创建时间: 2015-03-19T08:19:27Z
项目社区:https://github.com/tomazas/convex-rect-pack

开源协议:MIT License

下载


Project implements a heuristic 2D rectangle packing algorithm

Used for: packing as much rectangles as possible in convex & concave containers

Based on ideas described in paper:

"A heuristic approach for packing rectangles in convex regions" by Andrea Cassioli, Marco Locatelli"
(Paper)

Implementation details:

  • Coded with Processing.org IDE (Java)
  • Runs on Linux OS
  • Uses liblbfgs optimizer and Java liblbfgs wrapper
  • Best for packing x/y axis aligned elements
  • Supports 90 degrees element/rectangle rotation (horizontal & vertical)
  • Multi-iteration solving
  • Fixed size rectangles & any size container
  • Example container editor included for generating input data

Screenshots

Packing inside triangle

Note: yellow color denotes elements fully inside the container

Alt text

Packing inside custom shape #1

Alt text

Packing inside custom shape #2

Alt text