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

Function _get_one_wire

cadquery/occ_impl/shapes.py:5124–5134  ·  view source on GitHub ↗

Get one wire or edge and convert to wire.

(s: Shape)

Source from the content-addressed store, hash-verified

5122
5123
5124def _get_one_wire(s: Shape) -> Wire:
5125 """
5126 Get one wire or edge and convert to wire.
5127 """
5128
5129 rv = _get_one(s, ("Wire", "Edge"))
5130
5131 if isinstance(rv, Wire):
5132 return rv
5133 else:
5134 return Wire.assembleEdges((rv,))
5135
5136
5137def _get_wires(s: Shape) -> Iterable[Shape]:

Callers 4

test_utilsFunction · 0.90
textFunction · 0.85
sweepFunction · 0.85
_make_builderFunction · 0.85

Calls 2

_get_oneFunction · 0.85
assembleEdgesMethod · 0.80

Tested by 1

test_utilsFunction · 0.72