Probably a bit hard to explain but hopefully the image can explain better
There are 2 datasets, one is a point, the other is a line. Intended outcome is having polygons based on them
The lines form a shape around each point which I need to build a polygon out of, which I've highlighted as the shaded areas in yellow. But there can be multiple lines that can form each polygon, which I gave 2 examples in orange: