MCPcopy
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
89def _ensure_material(material):
90 """
91 Convert string to Material if needed.
92 """
93 return Material(material) if isinstance(material, str) else material
94
95
96class Assembly(object):

Callers 1

addMethod · 0.85

Calls 1

MaterialClass · 0.85

Tested by

no test coverage detected