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

Function _to_compound

cadquery/sketch.py:76–81  ·  view source on GitHub ↗
(obj: Shape)

Source from the content-addressed store, hash-verified

74
75
76def _to_compound(obj: Shape) -> Compound:
77
78 if isinstance(obj, Compound):
79 return obj
80 else:
81 return Compound.makeCompound((obj,))
82
83
84# %% Constraint

Callers 4

__add__Method · 0.85
__sub__Method · 0.85
__mul__Method · 0.85
__truediv__Method · 0.85

Calls 1

makeCompoundMethod · 0.80

Tested by

no test coverage detected