Flowers with L-System

August 23, 2011

Today I added filled polygons (called Surfaces) in L-Systems, so now it is possible to define some polygonal stuff, i.e. flowers. Next example is based on flower system from the book (figure 1.26), but with some modifications:

Viewer application was extended – now it is possible to check every build iteration of selected L-System (called steps). So, for the picture above step #3 is selected.

The other new feature is LSystems.Turtle.StringParser class. This is just a helper class, which allows to build modules string from characters string. In case of D0L systems its very convenient to use just simple strings, this was the reason to introduce this class. For example, the following Hilbert 3d Curve: