GithubHelp home page GithubHelp logo

vb6hobbyst7 / origami_patterns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evbernardes/origami_patterns

0.0 1.0 0.0 187 KB

Inkscape extension that creates origami tesselation patterns

License: MIT License

Python 100.00%

origami_patterns's Introduction

Origami Patterns

Inkscape extension that creates origami tesselation patterns.

Installation:

To install a new extension, download and unpack the archive file. Copy the files into the directory listed at Edit > Preferences > System: User extensions

On Windows, the default directory is: C:\Program Files\Inkscape\share\extensions

While on Linux, the directory is: /home/$USER/.config/inkscape/extensions/

Accessing the extension:

The extension can be found on Extensions > Origami Patterns

Input parameters:

Custom parameters (depends on desired Pattern)

  • Number of lines
  • Number of columns
  • etc...

Common parameters

  • Desired unit (mm, cm, px, etc.)
  • Color for every type of stroke (mountain creases, valley creases and edges)
  • Dashes for every type os stroke
  • Width for every type of stroke

Extra parameters

  • Semicreases, universal creases and cuts (for Kirigami) can also be implemented, if needed.

Output:

Creates the pattern. To simplify manual editing on Inkscape, the drawn pattern is composed of subgroups of strokes. For example, ungrouping the Waterbomb tesselation, you get three distinct groups of objects:

  • the mountain creases
  • the valley creases
  • the edges

These groups can also be divided into smaller groups:

waterbomb
├── edges
│   ├── bottom
│   ├── left
│   ├── right
│   └── top
│   
├── mountains
│   ├── horizontal lines
│   └── vertical lines
│   
└── valleys
    ├── line 1_a
    ├── line 1_b
    │   
    ├── line 2_a
    ├── line 2_b
    │   
    ├── ...
    │   
    ├── line N_a
    └── line N_b

Patterns implemented until now:

  • Waterbomb tesselation (and Magic Ball)
  • Kresling tower
  • Hypar (hyperbolic paraboloid approximate)

For creation of new patterns:

  • See origami_patterns_template.inx and OrigamiPatterns/Template.py for an example!

Todo:

  • Add more patterns if necessary
  • Add option to draw points

Deprecation and compatibility issues:

Deprecated functions are being replaced for Inkscape 1.0 while making sure it still works with older versions of Inkscape. I fixed all the bugs that I know of for now, but compatibility issues might still happen with Inkscape 1.0.

Simulation:

To simulate the patterns, Amanda Ghassaei's OrigamiSimulator can be used:

  • Check foldability of pattern (simulation mode with semicreases for circular pleat, triangulation for hypar, etc)
  • Create desired pattern with properly selected parameters
  • Set default values for all stroke colors (check File > File Import Tips on OrigamiSimulator)
  • IMPORTANT: Before saving, de-group every object, since OrigamiSimulator does not currently work with Inkscape's group transforms.
  • Save as .svg
  • Import .svg file from OrigamiSimulator

If pattern does not import correctly, you can try to create a bigger version of the same pattern.

origami_patterns's People

Contributors

evbernardes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.