Get multiple box edges in cameranear plane?

Hello All

I want to get the yellow edges with the two box ,now ,I have geted the cameraLocation and cameraNear plane in C#. And i project the brep edges on the plane, but what’s next step? Could any body help me?


image

The C# code

test.gh (13.9 KB)
Here is my ghfile