MCPcopy Index your code
hub / github.com/CadQuery/cadquery / toTuple

Method toTuple

cadquery/occ_impl/assembly.py:141–150  ·  view source on GitHub ↗

Convert Material to a tuple.

(self)

Source from the content-addressed store, hash-verified

139 return self.wrapped.GetDensValType().ToCString()
140
141 def toTuple(self) -> Tuple[str, str, float, str]:
142 """
143 Convert Material to a tuple.
144 """
145 name = self.name
146 description = self.description
147 density = self.density
148 densityUnit = self.densityUnit
149
150 return (name, description, density, densityUnit)
151
152 def __hash__(self):
153 """

Callers 4

__hash__Method · 0.95
__eq__Method · 0.95
__getstate__Method · 0.95
test_materialsFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_materialsFunction · 0.76