Reconstruct Wires from BRepAlgoAPI_Section resulting Shape

I used BRepAlgoAPI_Section to intersect two Shells.
In the resulting Shape I was expecting two continuous Wires, instead I got just a bunch of Edges.

Is there a convenient way to collect the connected edges from a list into a number of continuous wires?
Should I write an algorithm myself?

Great thanks!

Mikhail Sazonov's picture

I know 3 ways to do this:
1. Use the methods FillMap() and MakeBlocks() from BOPAlgo_Tools.
2. Use one of the methods MakeConnexityBlocks() from BOPTools_AlgoTools.
3. Use the method ConnectEdgesToWires() from ShapeAnalysis_FreeBounds.

Dario Pellegrini's picture

Great thanks, Mickhail, spot on suggestion!

I like the naming and interface of option 3 better, and I went with that with success.