Closed nylki closed 8 years ago
implemented in https://github.com/nylki/lindenmayer/commit/212c6d7b3d64bb9eae7a46c126d97f61e1d74a81
However modification naturally works only for the right side of, as the left side got already processed by the L-System.
Returning matched objects in context sensitive L-Systems is useful if you want to modify those (neighboring) objects. For example nutrients trickling up a tree: you may check if a leaf
L
has a branchF
viaF<L
. ThatL
could the syphon some virtualF.water
of that into itself (L.water
) for example, to simulate nutrition flow.