URGENT!how to solve the intersection between curve and brep?

how to solve the intersection between curve and brep?

i create many curves, but a part of curves pass through the brep and intersect with brep.
But, i don’t wanna see those curves which pass through the brep and intersect with brep and is shown in green color.

files r here!
thank you


unnamed - 複製.gh (10.1 KB)
Untitled.3dm (203 KB)

just don’t see them or delete them from the list of curves?

yup!

if I understood correctly you can use this

unnamed.gh (540 KB)

thank you very much!
its very useful!!!

just like before case.
if i dont want to the show the lines which pass through the brep, what should i do?
only show some lines which is directly go to a compose of rectangular surface.

unnamed_1.gh (14.1 KB)
123.3dm (1.43 MB)