Hi,

I have encountered a problem that is too hard for me to solve, yet I know the basics of how to do it.

So let me explain, also please look at the image. I want to take these lines from the geometry on the left, and transform it into two closed squares like the geometry on the right. My idea to start was to find the intersecting points, so that later I can trim them to have my official geometry. However, I am open to any other ideas on how to solve this problem. I do not have any preferences to how you solve it, I am open to GH components as well as scripts from C# or Python.

Here is the GH definition:

CurvesToPolygon.gh (7.4 KB)