tutorials:exercises_plant_like_structures_abop
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tutorials:exercises_plant_like_structures_abop [2025/10/27 16:03] – created MH | tutorials:exercises_plant_like_structures_abop [2025/11/01 09:46] (current) – Tim | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~NOTOC~~ | ||
| ===== Implement 'plant like structures' | ===== Implement 'plant like structures' | ||
| Line 4: | Line 5: | ||
| |“The Algorithmic Beauty of Plants”]] by Prusinkiewicz and Lindenmayer (1990) on page 25 in Figure 1.24. | |“The Algorithmic Beauty of Plants”]] by Prusinkiewicz and Lindenmayer (1990) on page 25 in Figure 1.24. | ||
| - | {{ : | + | {{ : |
| ==== Help ==== | ==== Help ==== | ||
| - | In order to have a **X** we 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. | + | 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. |
| <code java> | <code java> | ||
| Line 21: | Line 22: | ||
| ==== Solution ==== | ==== Solution ==== | ||
| + | <hidden solution> | ||
| For the initialization of out scene, we do not need to do much. Just set the correct start word as initial element. | For the initialization of out scene, we do not need to do much. Just set the correct start word as initial element. | ||
| Line 70: | Line 72: | ||
| {{ : | {{ : | ||
| + | </ | ||
tutorials/exercises_plant_like_structures_abop.1761577382.txt.gz · Last modified: 2025/10/27 16:03 by MH
