Unsorted Edges => Wires

Hi Friends,

Interesting case I didn't managed to figure out.

The attached file is a very simple Wire.
It is composed of 8 Edges, with 2 of them overlapping.
I want to get, somehow, the 2 closed manifold sub-wires and discard the overlapping (ie. 2 disconnected wires with 4 edges each).

What I've tried so far :
- ShapeFix_Wire => does nothing at all
- ShapeAnalysis_Wire => does not report any problem
- BRepBuilderAPI_Sewing => giving it all edges, does not perform anything (i.e. no Wire in SewedShape)

The approach that gives me the most relevant result (but not fully OK) is :
1. GFABuilder on Edges
The result is 9 edges with correct connectivites / topology (overlapping has been resolved, and "bad" edges split)

2. ShapeAnalysisFreeBounds.ConnectEdgesToWires
The result is 2 Wires, as expected, 1rst is ok with 4 edges, but 2nd is not (it has 5 edges)
ShapeFix_Wire on 2nd Wire doesn't fix it (ie. the 5th edges is not removed).

Maybe there is a tool that can do that all by itself ...
Or maybe I need to perform a 3rd step on the Wires to clean them ?

Do you have any advice ?
Thanks !

Attachments: