50 likes | 230 Vues
Explore the fascinating world of L-systems for generating fractals and other complex shapes. L-systems utilize simple rules and an axiom to create intricate patterns. The fundamental alphabet includes characters such as F (forward), f (forward without drawing), and symbols for angles and turns. Two examples are showcased: the Cantor middle-thirds set and the Koch curve, each illustrating how iteration and grammar rules can yield stunning visual results. Dive into the details of how to model plants and fractals using L-systems techniques.
E N D
L systems(Aristid Lindenmayer) Grammars for generating fractals (and other shapes) Need “axiom” and “grammar rules” Alphabet for rules: {F,f,+,} + Turn counterclockwise by a specified angle q Turn clockwise by a specified angle q F Move forward one step (length L) while drawing a line f Move forward one step (length L) without drawing a line
Example 1: Cantor middle thirds set axiom: S = F rules: F FfF ffff Initial L = 1 At each step, set L to L/3 F F f F F f F fff F f F
Example 2: Koch curve S = F axiom: S = F rules: F FF++FF + + q = 60 degrees Initial L = 1 At each step, set L to L/3 + + F F F F F + + F F F F