generative modeling for Rhino
I'm a graduate student who is trying to use for loop to do algorithm through GH,
however, GH is not willing to do so until hoop snake shows up.
I just try to do a small test then I'm already stuck.
The basic concept is to create a 3D boundary(a box),
by generating random differnt values(length) and vectors(xyz),
such as (0,0,2), (-3,0,0), (0,1,0), then connect these points in order,
so there will be a snake(polyline) running in the boundary and
keeps growing longer through looping.
However, I can't quite understand how to use hoopsnake to achieve such action.
I tried many times but all of them doesn't work.
About the 2 gh files below,
Gourmet Snake 3D.gh is before I use Hoopsnake,
I tried to run it without boundary.
Test snake.gh is that I tried to generate a random number for every loop,
then save them all and sum them up every loop,
so I can check if the result is out of boundary,
if true, then I can mutiply -1 to let it decrease till it's in the boundary.
But I can't achieve it through Hoopsnake.
Sorry for the poor english expression,
if you understand my problem,
any suggestion will be appreciated.