Skip to content
2D cellular patterns engine ( Delauney-Voronoi ) for generating procedural textures
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
appli
base
cmake
devTools
nodework
scene
CMakeLists.txt
INSTALL.txt
LICENSE
README.md

README.md

Cellule

NOTE: this project has not been updated since 2008. See Grasshopper 3D for a more usable implementation of this idea.

Cellule is a fast 2D cellular pattern ( Delauney-Voronoi ) engine written in C++ and cross-platform.

The main goal was to generate interesting cellular procedural textures of infinite resolution.

Gallery

Sample 1 Sample 2 Sample 3 Sample 4 Sample 5 Sample 6 Sample 7 Sample 8 Sample 9

Implementation

The Cellule foundations library ( CelluleF ) implement the data structure which is a 2D Delauney triangulation ( the corresponding Voronoi diagram is implicit ) of a set of circles ( weighted points which give the cells of the Voronoi diagram ). Cells can be added moved deleted dynamically and efficiently. The structure can quickly return the cell enclosing a given 2D point. Manipulating thousands of cells is ok.

The executable Cellule program is a GUI to create, modify, and visualize cellular patterns.

Contour smoothing

Each pixel of a cell is textured according to the shortest distance to a voronoi edge. To be able to support arbitrary smoothness of cell contours, we build a bspline along the Voronoi edge before computing the distance.

BSpline 1 BSpline 2 BSpline 3 BSpline 4

Credit

Author: bEngo foolscreen@gmail.com

Key contributor: juliango

Licence: GNU GENERAL PUBLIC LICENSE Version 2

You can’t perform that action at this time.