Switch branches/tags
Nothing to show
Clone or download
Latest commit c6fa82e Dec 10, 2016
Permalink
Failed to load latest commit information.
img first Nov 22, 2015
modules python3. Sep 6, 2016
res folder Nov 27, 2015
src renamed scales. add export 2obj Dec 4, 2015
.editorconfig export and some other minor changes Sep 5, 2016
.gitignore first Nov 22, 2015
LICENSE first Nov 22, 2015
README.md renamed fn Dec 10, 2016
install python3. Sep 6, 2016
main.py python3. Sep 6, 2016
main_ani.py python3. Sep 6, 2016
main_ani_new.py python3. Sep 6, 2016
main_island.py python3. Sep 6, 2016
main_island_ani.py python3. Sep 6, 2016
main_sources.py python3. Sep 6, 2016
main_sources_ani.py python3. Sep 6, 2016
setup.py python3. Sep 6, 2016

README.md

Differential Mesh

ani

Differential Mesh is an extension of the Hyphae (https://github.com/inconvergent/hyphae) algorithm. I started working on it with the intention of mimicking the growth of (certain types of) lichen. The results, to me, are equal parts crystal-like and biological.

ani

img

The algorithm appends triangles to the outside edges of the structure while it tries to keep themes from intersecting with itself. If the triangles are made small enough it will look like some sort of biological process.

The grid can be built in one of two modes. The basic one is the static mode. Once a triangle has been positioned, it will remain there forever. In the other mode the vertices will move throughout the process: They will avoid collisions with nearby vertices, whilst at the same time remaining close by their neighbours.

img

Prerequisites

In order for this code to run you must first download and install these two repositories:

Other Dependencies

The code also depends on:

  • numpy
  • scipy
  • cython
  • python-cairo (do not install with pip, this generally does not work)

Running it on Linux (Ubuntu)

To install the libraries locally, run ./install. I have only tested this code in Ubuntu 14.04 LTS, but my guess is that it should work on most other platforms platforms as well. However i know that the scripted install in ./install will not work in Windows

Similar code

If you find this alorithm insteresting you might also want to check out: https://github.com/inconvergent/differential-line.