tutorials:xl-turtle-geometry
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorials:xl-turtle-geometry [2024/11/29 12:55] – [Local transformation] tim | tutorials:xl-turtle-geometry [2024/12/18 10:02] (current) – [3D objects] Tim | ||
|---|---|---|---|
| Line 54: | Line 54: | ||
| The **moving** part is already covered by the M node for now. | The **moving** part is already covered by the M node for now. | ||
| - | You can **rotate** the turtle along the three axes x, y and z. We can see an example of the rotation tool on the right with the possible rotations in colors: x=red, y=blue and z=green. In the turtle geometry we can rotate these axes with the commands '' | + | You can **rotate** the turtle along the three axes x, y and z. We can see an example of the rotation tool on the right with the possible rotations in colors: x=red, y=blue and z=green. In the turtle geometry we can rotate these axes with the commands '' |
| Following up on our little example above you could think about rotation the short cylinder 30 degrees up like: | Following up on our little example above you could think about rotation the short cylinder 30 degrees up like: | ||
| Line 124: | Line 124: | ||
| |{{: | |{{: | ||
| - | ===== Modules | + | ===== 3D objects |
| - | ==== Instantiation rules ==== | + | As mentioned above in GroIMP we are not limited to the turtle commands but we can also use geometrical objects. |
| - | ===== Edge types ===== | ||
| - | |||
| - | ==== Branches ==== | ||
| - | |||
| - | ==== Decomposition & custom ==== | ||
| + | <code java> | ||
| + | protected void init () | ||
| + | [ | ||
| + | Axiom ==> F Sphere(1); | ||
| + | ] | ||
| + | </ | ||
tutorials/xl-turtle-geometry.1732881345.txt.gz · Last modified: 2024/11/29 12:55 by tim
