tutorials:simple-tomato-model
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:simple-tomato-model [2024/12/07 15:46] – [Improving leaflet shape] ksmolen | tutorials:simple-tomato-model [2024/12/07 16:02] (current) – [A simple tomato plant model] ksmolen | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== A simple tomato plant model ====== | ====== A simple tomato plant model ====== | ||
- | In this tutorial we will create a simple model of architecture and development | + | In this tutorial we will create a simple model of a tomato plant architecture. |
===== Preliminary steps ===== | ===== Preliminary steps ===== | ||
Line 199: | Line 199: | ||
</ | </ | ||
+ | The turtle command '' | ||
+ | |||
Now that we have specified the '' | Now that we have specified the '' | ||
- | By applying | + | By applying |
In tomato, after a certain number of phytomers (internodes with leaves), specified by a parameter '' | In tomato, after a certain number of phytomers (internodes with leaves), specified by a parameter '' | ||
Line 281: | Line 283: | ||
For an example on how to generate a leaflet mesh, see the tutorial [[: | For an example on how to generate a leaflet mesh, see the tutorial [[: | ||
- | {{ : | + | We use the code from the leaf triangulation |
- | + | ||
- | We use the code from the triangulation | + | |
To use the leaflet mesh in our tomato model, we create a new module for leaflet: | To use the leaflet mesh in our tomato model, we create a new module for leaflet: | ||
Line 292: | Line 292: | ||
RL(90) Scale(length, | RL(90) Scale(length, | ||
; | ; | ||
- | </ | + | </ |
- | Then we replace '' | + | Then we replace '' |
+ | |||
+ | |||
+ | {{ : | ||
<code java> | <code java> | ||
Line 306: | Line 309: | ||
// leaflet pairs | // leaflet pairs | ||
for (int i: | for (int i: | ||
- | [RU(-80) RL(-30) Cylinder(0.04, | + | [RU(-80) RL(-30) Cylinder(0.04, |
[RU( 80) RL(-30) Cylinder(0.04, | [RU( 80) RL(-30) Cylinder(0.04, | ||
RL(20) | RL(20) |
tutorials/simple-tomato-model.1733582777.txt.gz · Last modified: 2024/12/07 15:46 by ksmolen