Regions from self-intersecting polyline

Hello
You could look at that