MCPcopy
hub / github.com/CadQuery/cadquery / wire

Function wire

cadquery/occ_impl/shapes.py:5964–5974  ·  view source on GitHub ↗

Build wire from edges.

(*s: Shape)

Source from the content-addressed store, hash-verified

5962
5963@multidispatch
5964def 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

Callers 7

test_edge_paramAtFunction · 0.90
test_addHoleFunction · 0.90
addHoleMethod · 0.85
wireOnFunction · 0.85
test_constructorsFunction · 0.85
test_edgeOnFunction · 0.85

Calls 3

_shapes_to_toptools_listFunction · 0.85
_get_edgesFunction · 0.85
_shapeFunction · 0.85

Tested by 5

test_edge_paramAtFunction · 0.72
test_addHoleFunction · 0.72
test_constructorsFunction · 0.68
test_edgeOnFunction · 0.68