Kangaroo2 pipe collision

I’m have two grids of points spaced apart from each other. I want to connect random pairs of one point from each grid via randomly formed pipes that are the same length but do not intersect. My workflow goes as such:

  1. Create points for either end and a random control point between the two grids.
  2. Interpolate curves between each pair given the control point to find an average target length of curve
  3. Pipe curves and try to solve for collisions with Kangaroo2

Thoughts? Are there Kangaroo2 tutorials for this problem that would help?

No 1.gh (23.9 KB)

Hi @Will26,

Check if this helps:
No 1.gh (35.7 KB)


Note:
Notice curve division to ‘discretize’ your curves—left the default value - add more divisions to match the resolution of your splines (might slow things down).

I used MeshPipe because it’s faster—grab it here or replace with regular pipe or multipipe.

Check for and stop solver when:

Add more play according to what you need, example:

Or explore methods like what Martin shows here:

3D Pipes Screensaver

Try to experiment with sphere collision.

No 1.gh (30.9 KB)