Lexa

WPF, C#, Objective C and a little Math

Cutting module in LSystems

Cutting is now in the library. It is used to simulate shedding of plant parts, i.e. palm trees. The idea of shedding is the following: if cut symbol (module) is in the string, then all following symbols in current branch are skipped, i.e.

R, StartBranch, F, Cut, F, L, EndBranch

is transformed into

R, StartBranch, F, EndBranch

At the moment shedding itself (applying cut modules to the string) is done in Decomposite method, so no additional special functions were added to the System class.

An example of system using shedding is added to Viewer assembly.
Updated source code is already in the repository.


Categorised as: L-Systems


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>