Data management - Lines within Circle

Hi All,

I have a set of lines which I want to cut where they intersect with a circle.

My script works fine if this occurs only ones in one plane.

However I’d like to do the same for a set of circles + lines, each set being on a different level (plane) but I cant figure out what I’m doing wrong. I think it certain data needs to be grafted/ flatten but I’m getting a bit lost.

Any help would be much appreciated.

Many thanks,

Stephan

Read the entire post that is linked in the above quote.

-Kevin

Thanks for that Kevin,

I’ve attached the script now.

Cheers.

Stephan

Data management.gh (14.9 KB)

Your lines and circles are all arranged in the same order, so this works.

240218a_Data_management.gh (10.1 KB)

Edit: This shows how to sort and group your curves if they are not already arranged properly (just flattened and shuffled your source geometry to begin).

240218b_Data_management.gh (17.7 KB)

-Kevin

1 Like

1 Like

Brilliant.

Thank you very much Kevin.