How check if a TopoDS_Wire has at least two edges that intersect

I built a TopoDS_Wire from non sorted edges following this post:
But now I need check if at least two edges intersect. I was trying using ShapeAnalysis_Wire but this only let me check the intersection between two adjacent edges. I'll thanks any idea.
Thanks in advanced.

Thomas Rabenbauer's picture

Im also trying to figure this out. So far not so good