Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
76
def
_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
makeCompound
Method · 0.80
Tested by
no test coverage detected