My objective is to delete all grid line segments which aren’t adjacent to certain types of panels. To select these segments, I have imported the geometry of the panels into dynamo, got the PolyCurve of the grid line, and tried to get intersections between them.
I get intersections using Geometry.DoesIntersect or BoundingBox.Intersects, but that only show the intersections with the entire grid line, not its segments. And if i get the curves from the polycurve (=segments), i cannot get any intersections with the panels. I have tried offsetting them, but it does not help.
Not sure if i’m even going about this correctly; or perhaps i just don’t understand how to work with polycurves. Help very much appreciated.