1 / 5

Generating Fractals with L-Systems: Grammar Rules and Axioms

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.

nayef
Télécharger la présentation

Generating Fractals with L-Systems: Grammar Rules and Axioms

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. Example 1: Cantor middle thirds set axiom: S = F rules: F FfF ffff Initial L = 1 At each step, set L to L/3 F F f F F f F fff F f F  

  3. Example 2: Koch curve S = F axiom: S = F rules: F  FF++FF +  +  q = 60 degrees Initial L = 1 At each step, set L to L/3 + + F F F  F  F  + + F F F   F

  4. http://www.allenpike.com/modeling-plants-with-l-systems/

  5. Netlogo L-systems exercise

More Related