First time visitors there are a few ways to get acquainted:
- introduction and tutorial
- documentation, there are a lot of interactive graphical examples.
- download this repo and check out the
A data model of a crease pattern is initialized like so
var cp = new CreasePattern();
If you are in the browser, initialize an OrigamiPaper object and you also get an SVG visualization of the Crease Pattern.
var origami = new OrigamiPaper();
There are functions for checking local flat-foldability, Kawasaki-Justin's theorem, Maekawa's theorem, exposing the planar graph data structure. Everything is built on a custom geometry module giving the user control over the epsilon value for all adjacency or intersection calculations, useful for .svg file import. This library supports .fold, .oripa, and .svg file formats for import and export.
check out the introduction and tutorial for detailed usage notes.
from the project root directory, compile source files using rollup:
MIT open source software license