Layer.copyDecomposedLayer() with closed corners?

Hello, is it intentional that Layer.copyDecomposedLayer() returns a layer with corners still open? Is there a method that returns the layer like it looks on screen, so to speak? Layer.removeOverlap doesn’t work reliably for open corners.

What do you mean by open corners? The triangular path overlaps? Of course that’s intentional.

Overlap removal should work fine if the path direction is correct. If it doesn’t, then we’re interested in the path that causes Remove Overlap to malfunction.