Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CadQuery/cadquery
/ _ensure_material
Function
_ensure_material
cadquery/assembly.py:89–93 ·
view source on GitHub ↗
Convert string to Material if needed.
(material)
Source
from the content-addressed store, hash-verified
87
88
89
def
_ensure_material(material):
90
""
"
91
Convert string to Material
if
needed.
92
""
"
93
return
Material(material)
if
isinstance(material, str)
else
material
94
95
96
class
Assembly(object):
Callers
1
add
Method · 0.85
Calls
1
Material
Class · 0.85
Tested by
no test coverage detected