How to find intersection between two lines + list them

Hello everyone,

I’m new to working with Grasshopper and can’t find the best way to extract the information I need parametrically.
I’m building a reciprocal tower made of bamboo.
I intend to find a row of intersection points and use them as an after as the start and endpoints to make a pipe that will work as a bamboo beam for the restructure.

My question:

  • I’ve tried to use the Curve / Curve to find this intersection, but it just gave me the first row of intersection points. How can I find the others? *ps: the points in the screenshot I found them manually in Rhino.
  • After finding these points how can I connect them using a shift list or something similar to easily cross some beams with line + pipe connecting these points?

The images for reference are attached.
The gs and rhino files too.

I want to say thank you guys in advance for helping me out with this doubt.


reciprocal tower 7.3dm (307.5 KB)
reciprocal tower 7.gh (77.6 KB)

I’m not sure about what you want? There is a lot of code in this file! The Rhino file wasn’t useful to me so I recommend ignoring it.

I used a brute force approach to get the piped polygons shown in colors (one per branch). The key to getting Curve | Curve intersections to work is often grafting one of the inputs.


reciprocal tower_2024Jul30a.gh (87.3 KB)

1 Like

Amazing Joseph. Thanks for the support.

The tip to use graft worked here.

I think I’ve attached the not clean code. sending it again here.
I think my explanation got a little confusing. I would like to find these intersection points to connect them in a pattern that will produce lines crossing internally the tower like this:

reciprocal tower 7_clean.gh (28.1 KB)

Is this what you’re trying to accomplish?



240730a_reciprocal_tower_7_clean.gh (12.8 KB)

I’ve eliminated code that seems unrelated to your question.

-Kevin

Oh, sure, your first image showed the lines in red.

Why would I want to ignore what I’ve already done :question: Looks to me like using the points I used for piped polylines a little differently would work? Your one-based point labels are not helpful though… :roll_eyes:

I didn’t do the half lap intersections of pipes at right angles to each other on each layer, but that won’t be difficult, eh?


reciprocal tower_2024Jul30b.gh (89.6 KB)

P.S. Added that in version ‘30c’ below. (purple group)


reciprocal tower_2024Jul30cc.gh (92.7 KB) (minor fix)

Thank you all for your helpful responses and suggestions. I really appreciate this support.

Sorry for the mess resending the code. I also understand your point about the one-based point labels. I tested the version you sent and seems to be working perfectly. Now i understand better how to work shift paths.

Thank you a lot!

Exactly Kevin. I will combine the knowledge you shared here with Joseph’s and have some practice to understand it!! Thanks a lot