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] – [Transformation] tim | tutorials:xl-turtle-geometry [2025/10/29 12:09] (current) – [XL turtle geometry and graph construction] Tim | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| | {{: | | {{: | ||
| | The 3d view and the graph structure created by the init function above | | | The 3d view and the graph structure created by the init function above | | ||
| - | This function is called | + | This function is called |
| 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 123: | Line 123: | ||
| |{{: | |{{: | ||
| - | ===== Local transformation ===== | ||
| - | ===== 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.1732881337.txt.gz · Last modified: 2024/11/29 12:55 by tim
