next up previous contents
Next: Stochastic L-systems Up: Results Previous: Simple L-systems

Context-sensitive L-systems

 

  
Figure 6: The growing of a context-sensitive L-system plant

To simulate the effect of the flow of nutrients or hormones in plant growing, we have to consider the interaction between adjacent plant parts. A (k,l)-system, the most general context-sensitive L-system, was implemented in this software. That is, to match a symbol for a rule, we have to consider its left k ajacent symbols and its right l ajacent symbols, where k and l are both integers larger than zero. The example here is a (1,0)-system, known as 1L-system.

The L-system definition in text file r2.l:

Note the syntax of the context-sensitive L-system listed above. The second rule means that whenever there is a symbol F located at the left neighborhood of symbol E, the symbol E should be replaced by the successor of the rule, that is, F[ F[+++A]][^F[---A]].

The third rule describes the shape of a leaf. The special symbol G is used to notify the interpreter that it represents the structure of a leaf, not of a branch.

The geometry definition in the html file:



Tong Lin (tlin2@cs.umbc.edu)