Curve Offset


As show in image. i exploded the bigger rectangle, and offseted them until it touches any of the plots and whatever plots it intersects with. i want it in one seperate list. im getting incorrect values. i attached my gh.file. please look into this
test.gh (9.3 KB)

I opened the file. There are only two (the bigger) rectangles in there.
Could you also include the other objects (plots?).

Sure. Heres the file
test1.gh (11.3 KB)

I don’t know about scripting in grasshopper (so my compliments for just doing that :slightly_smiling_face:

To at least understand what it is about, I asked gemini to transfer this into grasshopper components. Not perfect, but I could work from there.
No idea if what I made is what you want, but it helps to make all steps (and choices) visible). Maybe it is helpfull.

Regards, Eef
test_eef_gemini.gh (14.0 KB)


What is "gemini "? And what is the point of this thread?

Hello Joseph,

“gemini” is the AI-searchbot of Google. Saved me time sorting out the script so I could understand what the functionality would be in regular gh components.

From my point of view, you don’t need scripting to resolve what you are about to achieve. To check the intersection, you can use curve proximity, a distance component and sort them.

I edited it a bit, looks more like your image + description.
Was not able to get the sorting and splitting precisely as I wanted (my learning :wink: )


As shown in image when i offset the exploded segments of bigger rectangle i want only those plots it intersects with first i.e the green plots to a list and break the loop right there so the moved curve doesnt have to intersect with red one too. i want this only in python script as id like to break the iteration loop of incremental movement of exploded curve. Heres the attached file so you can help me fix my python script
test1.gh (5.3 KB)