Implement 'plant like structures'
Implement the 'plant like structures' as described in the book “The Algorithmic Beauty of Plants” by Prusinkiewicz and Lindenmayer (1990) on page 25 in Figure 1.24.
Help
In order to have a X (model d), e), and f)) that we can use, we first need to define it as module. For this a module without any parameters, extends, or instantiations is doing the job just fine. While we already have a F symbol - a cylinder - in our default set of symbols, we will get some scaling issues when we use it directly, since the default dimension unit is meter, therefore, the generated will become several meters high and hardly visible when zoomed out. Therefore, we simply define us a new 'small F' (sF) as Cylinder of a better fitting dimension as given below. In this way, we also can adapt other properties like the colour.
// module definitions module X; module sF extends Cylinder(0.1,0.015).(setShader(RED));
Further replace the L-system commands + and - by RU rotations. So, + becomes RU(angle) and - is translated to RU(-angle).


