Giter VIP home page Giter VIP logo

differential-mesh's Introduction

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

Running it on OS X

To install on OS X, you'll need to install OpenMP / Clang, and then have cc linked to that installation. So, in the differential-line directory:

$ brew install clang-omp
$ ln -s /usr/local/bin/clang-omp /usr/local/bin/cc
$ ./install
$ rm /usr/local/bin/cc

Also, you'll need to have pygtk installed to run the included files.

$ brew install pygtk

You should now have a working copy installed.

Running it on Windows?

The code will probably work just fine under Windows, but I'm not sure how to install it. (Let me know if you get it working!)

Similar code

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


http://inconvergent.net

differential-mesh's People

Contributors

inconvergent avatar

Watchers

 avatar  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.