The repository contains a package to create vtk files for rigid origami animation.
The current version supports:
- Single crease fold (a)
- Miura-ori (b)
- Single-orbit Hexagonal-triangular Resch (c)
- Triangular startuck (d)
- ori-anim: Exports animation of selected rigid origami
- Python 3.10.x
- NumPy
- Matplotlib
- SciPy
- tqdm
- ParaView 5.8 (Download from here. The latest version is 5.11, but runs slow on laptop and requires powerful machine)
In root directory of the project, run the program with origami type specified (ori_type), e.g., for Miura-ori,
python -m ori-anime run --ori_type miuraor
python3 -m ori-anime run --ori_type miuraFor single crease fold, Resch, and startuck, give "crease", "resch", and "startuck" respectively, instead of "miura".
Without other arguments, the program generates vtk files with default parameters. To define geometry, number of data points, and other options, see
python -m ori-anime run -hor
python3 -m ori-anime run -hTo clean all previous results (vtk_*/ directories and zip files) in the root directory, run
python -m ori-anime cleanor
python3 -m ori-anime cleanThere are several different ways to install Python (for Mac and Linux, Python might be pre-installed and comes with OS).
- Install with installer (Python official website)
- Install with Python distribution (e.g., Anaconda)
- Install with package manager (e.g., homebrew for Mac, apt for Debian/Ubuntu)
- Install with version control tool (e.g., pyenv)
After installation, open terminal (e.g., PowerShell for Windows, Terminal for Mac and Linux) and run
python --versionor
python3 --versionMake sure that it returns Python 3.10.*.
To install packages, with pip
python -m pip install numpy matplotlib scipy tqdm PyQt5or
python3 -m pip install numpy matplotlib scipy tqdm PyQt5If the environmental path and alias are set for pip, simply
pip install numpy matplotlib scipy tqdm PyQt5With Anaconda, either use GUI or
conda install numpy matplotlib scipy tqdm PyQt5- Yasuhiro Miyazawa (Dept. of Aero. & Astro., UW)
- Ted Chang (Dept. of Aero. & Astro., UW)