Hi. I have a project that I believe can be solved with Kangaroo 2 in Grasshopper. I’m trying to create a bunch of neuron-like nodes that self organize. I’ve made a binary spreadsheet that indicates whether a point is connected to another point.
For example: point A connects to point B, point A connects to point C, point A does not connect to point D, point A connects to point E. And point B connects to point A, point B does not connect to point C, point B does not connect to point D, point B connects to point E, etc.
It’s about 1000 points and clearly less connections. However, my points are pretty random and so are their connections. I was hoping to draw a springy line between each connecting point with Kangaroo and have them self organize themselves. I was also hoping to add some sort of repelling force between each point so they spread out as much as possible in a 3D space.
That’s what I’m trying to do.
Issues I’m having right now are:
- figuring out how to import my binary spreadsheet so I don’t have to manually build each connection.
- finding how to make my points so they aren’t anchored
- finding how to connect the points with springy lines. (1in lines with 5in of play)
- pressing “go” and having the points and lines self organize (points should be closer to other points that they are connected to. The more connections a point has the more stable it should be and the less connections a point has the further out it can be… this is where things get pretty fuzzy in my mind)
I imagine I’ll probably need to write a python script at some point but if I can avoid it that would be amazing!
Does anyone have any idea on where I could start? Thank you in advance for any hints or suggestions since I’m kinda not sure where to even start.