I want to make a wire from a bunch of data representing arcs and lines. These elements compose a closed contour, but initially they are not ordered, so I think I must use ShapeAnalysis_FreeBounds::ConnectEdgesToWires to order and compose a wire (or set of wires).
To do this, I make the edges from the initial data, and pass the parameters to ShapeAnalysis_FreeBounds::ConnectEdgesToWires.
The problem is that if the contour is closed, the function returns two opened wires instead of only one closed. I have checked that all the extrema are OK (i.e., no tolerance issues). In addition, if I pass as parameter all the elements except one, the function returns only one wire, so it seems to work well for open contours.
Does someone experienced this issue? Am I doing something wrong?
Thanks in advance