Introduction to L-systems and Turtle Graphics Interpretation

Brent R. Bielefeldt, Darren J. Hartl, Marcelo H. Kobayashi · Cambridge University Press eBooks · 2025

To address the need for an inherently multiobjective preliminary design tool, this chapter introduces a heuristic alternative to the conventional topology optimization approaches discussed in the previous chapter. Specifically, a parallel rewriting system known as a Lindenmayer system (L-system) is used to encode a limited number of design variables into a string of characters which, when interpreted using a deterministic algorithm, governs the development of a topology. The general formulation of L-systems is provided before discussing how L-system encodings can be interpreted using a graphical method known as turtle graphics. Turtle graphics constructs continuous, straight line segments by tracking the spatial position and orientation of a line-constructing agent, leading to the creation of branched structures that mimic those found in numerous natural systems. The performance of the proposed method is then assessed using simple, well-known topology optimization problems and comparisons to mathematically known optimal or ideal solutions as well as those generated using conventional topology optimization methodologies.

Read the paper · More papers on PaperTik