~boringcactus/turtle3D-grasshopper

78912df12f0ee1bfb4bdd41a422b912cf860c056 — Melody Horn 2 years ago 4c44df6
add screenshots to tutorial
10 files changed, 15 insertions(+), 0 deletions(-)

A doc/01.png
A doc/02.png
A doc/03.png
A doc/04a.png
A doc/04b.png
A doc/05a.png
A doc/05b.png
A doc/06a.png
A doc/06b.png
M tutorial.md
A doc/01.png => doc/01.png +0 -0
A doc/02.png => doc/02.png +0 -0
A doc/03.png => doc/03.png +0 -0
A doc/04a.png => doc/04a.png +0 -0
A doc/04b.png => doc/04b.png +0 -0
A doc/05a.png => doc/05a.png +0 -0
A doc/05b.png => doc/05b.png +0 -0
A doc/06a.png => doc/06a.png +0 -0
A doc/06b.png => doc/06b.png +0 -0
M tutorial.md => tutorial.md +15 -0
@@ 6,14 6,20 @@ Assumes you've already [installed turtle3D for Grasshopper](https://git.sr.ht/~b
2.  Add a slider "turn" over the real numbers ranging from 0.1 to 45.0.
3.  Add a slider "tilt" over the real numbers ranging from 0.1 to 45.0.

![](doc/01.png)

4.  Create a domain from -turn to turn.
5.  Create a domain from tilt-1 to tilt+1.
6.  Create a slider "steps" over the integers ranging from 2 to 50.

![](doc/02.png)

7.  Generate random numbers (Sets > Sequence > Random) with a range based on "turn" and a number set to "steps".
8.  Generate random numbers with a range based on "tilt" and a number set to "steps".
9.  Generate a random number with a range set to "0 To 360" (leave the number at 1).

![](doc/03.png)

10. Add a Python node.
    Give it four inputs: `move`, `first_turn`, `turns`, and `tilts`.
    Right-click on each of `turns` and `tilts` and set them to "List Access".


@@ 32,10 38,16 @@ Assumes you've already [installed turtle3D for Grasshopper](https://git.sr.ht/~b
    a = lines()
    ```

![](doc/04a.png)
![](doc/04b.png)

11. Add a slider "radius" over the real numbers
 ranging from 0.100 to 5.000.
12. Make a Pipe (Surface > Freeform) with the curve coming from the Python node's `a` output, the radius coming from the slider, and the caps set to Round (right-click the E input to set that).

![](doc/05a.png)
![](doc/05b.png)

13. Add a slider "first seed" over the integers ranging from 0 to 100.
14. Add a slider "iterations" over the integers ranging from 2 to 100.
15. Add a Series (Sets > Sequence) starting at "first seed", stepping by 1, for "iterations" numbers.


@@ 43,6 55,9 @@ Assumes you've already [installed turtle3D for Grasshopper](https://git.sr.ht/~b
16. Add a Solid Union (Intersect > Shape) pulling input from the Pipe created earlier.
    Right-click the output of the Pipe and set it to "Flatten".

![](doc/06a.png)
![](doc/06b.png)

Now you should have a funky bowl that is randomly generated based on the seed settings you use!
It won't look much like a bowl when your iterations slider is below 10 (and even then it's a stretch), but by that point your computer will have a hard time keeping up with you if you're fine-tuning your parameters.
For me, at least, the bottleneck was actually the Pipe node, so you might want to use a Trigger node or right-click and disable it while you're playing with your sliders.