Extracting set of points from LINE + SOLID intersection

Hello, I am currently in a process of making an isovist script.
I used Intersect.FromIsovist node from Lunchbox but the view rays are not getting intersected by the solid walls / obstruction. I am trying to do that intersection on my own.

My plan is,

  1. find all the points that are resulted from solid/line intersection
  2. connect a polygon / surface by connecting all those points.

However, I am having trouble converting line into curve since curve.solid intersection node only accepts curve as the input. any suggestion?

the last image is what i eventually want to achieve.
thank you in advance!