Convert edges to a list of wires.
(edges: Iterable[Edge], tol: float = 1e-6)
| 5044 | |
| 5045 | |
| 5046 | def edgesToWires(edges: Iterable[Edge], tol: float = 1e-6) -> list[Wire]: |
| 5047 | """ |
| 5048 | Convert edges to a list of wires. |
| 5049 | """ |
| 5050 | |
| 5051 | edges_in = TopTools_HSequenceOfShape() |
| 5052 | wires_out = TopTools_HSequenceOfShape() |
| 5053 | |
| 5054 | for e in edges: |
| 5055 | edges_in.Append(e.wrapped) |
| 5056 | |
| 5057 | ShapeAnalysis_FreeBounds.ConnectEdgesToWires_s(edges_in, tol, False, wires_out) |
| 5058 | |
| 5059 | return [Wire(el) for el in wires_out] |
| 5060 | |
| 5061 | |
| 5062 | # %% utilities |