Build wire from edges.
(*s: Shape)
| 5962 | |
| 5963 | @multidispatch |
| 5964 | def wire(*s: Shape) -> Wire: |
| 5965 | """ |
| 5966 | Build wire from edges. |
| 5967 | """ |
| 5968 | |
| 5969 | builder = BRepBuilderAPI_MakeWire() |
| 5970 | |
| 5971 | edges = _shapes_to_toptools_list(e for el in s for e in _get_edges(el)) |
| 5972 | builder.Add(edges) |
| 5973 | |
| 5974 | return _shape(builder.Shape(), Wire) |
| 5975 | |
| 5976 | |
| 5977 | @multidispatch |