How to split a Polyline into valid Polygons?

I have one Polyline that can be made into two polygons due to self-intersecting point. How to split this polyline into two (or more - for other examples) polygons?

HowToSPlitPolylineToPolygons.gh (7.3 KB)

Maybe what you want is Shatter?


HowToSPlitPolylineToPolygons_re.gh (10.2 KB)

1 Like

@HS_Kim thanks a lot!