Split lines with infinite plane


(Emmanuelle Vanhaesendonck) #1

Hi,
I have generated some lines in grasshopper, and I would like to split them with an infinite plane xy. There is a split plane ‘command’ that works for mesh, but I don’t find one for lines. I made an exemple with a line and a plane to show what I mean, in the example with the surface it works, but I need an infinite one…
split lines.gh (4.5 KB)
split lines.3dm (2.5 MB)
Someone knows how to do this? Thanks! :slight_smile:


#2

This could be one way…

split lines_re.gh (10.3 KB)


(Emmanuelle Vanhaesendonck) #3

@HS_Kim Great! That was what I was looking for! Thanks. Is there a way to select the lines under the plane to throw them away after the split?


#4

Check this as well…

split lines_reV2.gh (11.3 KB)


(Emmanuelle Vanhaesendonck) #5

Thats working perfect on my model! Thanks for the time :slight_smile:


(qythium) #6

Or use the Line / Plane Intersection component along with Shatter:

Note that converting the split curves back to lines will reparameterize their domains (in case this is important later)


(Emmanuelle Vanhaesendonck) #7

@qythium Oké, thanks, I try that out :slight_smile: