Description
Polygon Packer is a Python program that solves the 2D bin packing problem for polygons. You give it a number of inner polygons, the number of sides of each, and the number of sides of the container polygon, and it searches for a tight arrangement of the inner shapes inside the container. You run it as a script with python3 polygon_packer.py followed by those three values. Optional settings control how much work it does: an attempts count that defaults to 1000, a penalty tolerance that trades overlap margin against exploration, a final step size that controls how the container shrinks, and an output format that is png by default or svg. The README says the program was used to find a set of optimal packings published on Erich's Packing Center. It is a computational tool for people working on packing problems, and the source is public on GitHub.…
Highlights
- Solves 2D bin packing for any polygons
- Python script with command-line options
- Adjustable attempts and tolerance
- PNG or SVG output
- Public source on GitHub
Ratings & Reviews
No ratings yet
Be the first to rate Polygon Packer.
People also visit
Polygon Packer FAQ
What does Polygon Packer solve?
The 2D bin packing problem: fitting a number of polygons inside a larger polygon container.
How do I run it?
Download the Python file and run python3 polygon_packer.py with the number of inner polygons, their side count, and the container's side count.
What output does it produce?
An image of the packing, in png by default, or svg if you set the output format.
What do the optional settings do?
--attempts sets how many tries to run, default 1000. --tolerance sets the penalty tolerance, default 0.00000001. --finalstep sets the container shrink step, default 0.0001.
What are the best Polygon Packer alternatives?
Popular alternatives to Polygon Packer include Pingo. See all Polygon Packer alternatives









