A port of Evil Mad Scientist's snowflake maker into openframeworks http://www.evilmadscientist.com/2008/vector-snowflake-application/
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ofxSVGPlus/src
src
.gitignore
EvenOdd Winding.PNG
LICENSE
NonZero Winding.PNG
README.md
Windows.zip

README.md

Snowflake

A port of Evil Mad Scientist's snowflake maker into openframeworks http://www.evilmadscientist.com/2008/vector-snowflake-application/

This just takes the processing code into openframeworks and adds in a few features like:

  • determining the polywinding mode
  • instead of exporting to a pdf it exports to an SVG.
  • Slider for number of sides

What is polywinding? This website has a pretty good explanation of the concept http://www.sitepoint.com/understanding-svg-fill-rule-property/

Basically it determines holes in a shape based on how the lines overlap. There are more than just the ones this program has but since we are exporting to an svg they only have either even-odd or non-zero windings

If you want to build this yourself download openframeworks http://www.openframeworks.cc/

use the project generator to make a new project, you can use the src files included in this repo. I had to edit some files in order to make things work, so I am including the edited addons as well

The required addons for this project are ofxUIUtils - my UI library ofxSVGPlus - Needed to save things to an SVG ofxOpenCv - not the most elegant solution but it works for finging holds with non-zero winding ofxXmlSettings - SVGPlus requires this for handling everything