Skip to main content

Package to perform calculations using the Huzita-Justin axioms for 2-dimensional origami

Project description

Origametry

Python package to perform calculations using the Huzita-Justin axioms for 2-dimensional origami

Installation

pip install origametry

Getting Started

From only a few starting points, you can generate complex sequences of folds

from origametry import Point, fold, show

point_1 = Point(0, 0)
point_2 = Point(2, 1)

# axiom 2: point onto point
line = fold(point_1, point_2)

# axiom 5: point onto line through another point (2 solutions)
creases = fold(point_1, line, point_2, point_2)

And view your resulting crease pattern

show(point_1, point_2, line, creases=creases)

example plot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

origametry-0.0.5.tar.gz (15.2 kB view hashes)

Uploaded Source

Built Distribution

origametry-0.0.5-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page