Origami Crease Pattern tools
Project description
creasepattern
Basic tools to work with Origami Crease Patterns.
Usage
cp2png(infile, outfile, size=2048, margin=20, aa_scale=4)
Convert .cp
files to .png
Size of the output file is scaled to the given size, either horizonally or vertically, whichever is larger.
aa_scale
is used to anti alias. Set to 1 to disable anti aliasing.
from creasepattern import cp2png
cp2png('file.cp', 'file.png')
cp2svg(infile, outfile, margin=10)
Convert .cp
files to .svg
from creasepattern import cp2svg
cp2svg('file.cp', 'file.svg')
opx2png(infile, outfile, size=2048, margin=20, aa_scale=4)
Convert Oripa .opx
to .png
opx2svg(infile, outfile, margin=10)
Convert Oripa .opx
to .svg
Roadmap
- (Must) Make size of output configurable
- (Must) Make edge types configurable
- (Could) Support more filetypes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
creasepattern-0.0.5.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for creasepattern-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ca39776b88386fc9893d3b8a8052866010a3243e2320637135f19905b5e70d |
|
MD5 | bd197ff099a8908e493430a79af1c610 |
|
BLAKE2b-256 | 1ae1171070b3ffa9d630e6f13c13d8c81c9b57173f7c18b98f8ab49e663f16eb |