Teaching Aid

L-system rule and SPO rule

 

 
Copy/Paste the following code to your GroIMP project:
//**********************************************************
/* You will learn:
– the distinction between L-system rules (==>) and
SPO rules (==>>)
– the special character ^ for the root node of the actual graph.
*/

module A extends Sphere(3);

protected void init()
[ Axiom ==> F(20, 4) A; ]

public void runL()
[
A ==> RU(20) F(20, 4) A;
]

public void runSPO()
[
A ==>> ^ RU(20) F(20, 4, 5) A;
]

//**********************************************************
 

DATE: 2009

 

AUTHOR: W. Kurth

 

DESCRIPTION:  see model

 

Welcome to the website grogra.de. This site is the web centre of growth grammars of the Department Ecoinformatics, Biometrics and Forest Growth at the Georg-August University of Göttingen and its cooperation partners.