I’m trying to create a lattice within a volume. To make it easier to work with I’m building this lattice with lines then using TrimWithBrep to cut the lines and using only those within the brep. This however leaves behind the trimmed sections which connect to nothing and are a pain to go back and delete after. Is there a function to only select those curves that are fully within the brep and remove any that are outside/partially outside the brep?
Examples in images. 1st image here shows a few curves that are left after the cut. Is there a way to simply delete any curves that are outside of the brep as well as any curves that intersect the brep? My use of “TrimWithBrep” removes any curves outside of the brep and trims any curves that intersect the brep but leaves the internal curve behind. This often leads to floating lines and unsupported lattice segments.
LatticeCutVsRemoveLinesExample.gh (20.7 KB)
Thanks for your help.