How do I loop or repeat a cluster?
Part of a definition I’m working on creates groups of connected lines. I would like to be able to randomly cull lines without breaking up the connected group.
Below is an example. The red lines can’t be culled without breaking or shortening the chain. If I randomly select one and only ONE blue line, it can be culled with no chance of breaking the chain. Randomly cull two blue lines, and I might break the chain.
Here’s a definition that culls random lines: dont break the chain multi-input.gh (42.6 KB)
As uploaded, if you move the “number of lines to cull” slider and keep the “random seed” slider, you’ll see how a single iteration of this method can fail when culling multiple lines.
Because I don’t know anything about recursive or iterative solving, the only way I can cull more than one blue line and guarantee that I won’t break the chain would be to cluster this definition and connect it to itself in a line, repeatedly.
My Question: What methods/plug-ins are available for looping/chaining a cluster like this? Are there tutorials that explain how to do this?