An open API service indexing awesome lists of open source software.

https://github.com/travisgk/maxpolygon

This Python script generates a diagram of the largest possible regular polygon that can fit inside a square sheet of paper.
https://github.com/travisgk/maxpolygon

artsy geometry measurements origami paper polygon python

Last synced: about 1 month ago
JSON representation

This Python script generates a diagram of the largest possible regular polygon that can fit inside a square sheet of paper.

Awesome Lists containing this project

README

          

# MaxPolygon

This script generates a diagram of the largest possible regular polygon that can fit inside a square sheet of paper.

![A heptagon.](output/png/poly-7.png)

The diagram has side measurements that help you cut out a perfect, symmetrical shape that maximizes the use of the available surface area.

![A nonagon without labels.](output/png/cut-out-poly-9.png)
You can also tell the script to render a PDF that can be printed out and directly cut out.
a stands for anticlockwise and c stands for clockwise.


## Dependencies
You will need PIL, numpy and reportlab to run this script.
```pip install pillow numpy reportlab```


### Configuration
You can change constants under maxpolygon._config.py in order to modify the appearance.