I don’t understand what the problem with Grasshopper is

I have a grid of curves and I need to split these curves into segments (between the intersections). I’ve obtained the intersection points, but I don’t understand what I’m doing wrong when generating the segments.


Please share your Grasshopper file.

1 Like

surface.3dm (213.2 KB)
surface.gh (27.1 KB)

Here’s my Grasshopper file, as well as my Rhino file containing the surface geometry that the script references.

Is this your goal?

surface mrtn.gh (16.4 KB)

2 Likes

Your code is so much simpler :bangbang: :wink: No Python required, no mess, no fuss. :+1:

1 Like

I want to see the bent sections :slight_smile:

This isn’t exactly what I was trying to describe (English isn’t my native language, so it can be tricky). What I want to achieve is that the Grasshopper file I’ve created should automate part of the work in designing beam structures. In these types of structures, the beams are usually straight, so I wanted to replace the surface-following curves with straight-line segments between intersections, and then sweep the beam profile along those straight segments

I also decided to implement the guide-line generation logic in Python so that it would be a bit easier to adjust the step size later. I’m probably overcomplicating things, since I’m just a beginner

Riffing on @martinsiegrist’s simpler code, I got this:


surface mrtn_JO2.gh (14.8 KB)
(updated: I forgot to disable the ground plane)

2 Likes

Thank you! This is exactly what I need.

My modifications to @martinsiegrist’s code were very simple. Your code was much more difficult to understand, partly due to language and partly due to complexity and not hiding plane previews.

Martin, I didn’t mean to take credit for your solution :bangbang: Sorry.

All good…

1 Like

Since @martinsiegrist’s solution was the basis of what I needed, I moved the checkmark indicating the accepted solution to his answer. I don’t know if that means anything on the site (I just registered today and am still learning all the rules and guidelines), but it feels like the fair thing to do. I’d like to express my sincere thanks to @martinsiegrist for the solution and to @joseph_oster for his addition!

4 Likes