Handling double overlap

I have the problem of double overlap

image

image

how to overcome this?

Then the path direction of the paths is not correct. https://glyphsapp.com/tutorials/drawing-good-paths

I know something is wrong in path.

I want to use two infinity loops to make this twisted band strip, which will be good for weight variation.

It would be great to understand how this paths are used to fill the area.

If two outlines overlap each other and they have the same direction, it is black. If two outlines overlap each other and they have different directions, it is white.

In your example, the lower outline goes clockwise, while the upper outline probably goes counterclockwise.