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:

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.