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

Function test_shells

tests/test_shapes.py:168–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166
167
168def test_shells():
169
170 s = box(2, 2, 2) - box(1, 1, 1).moved(z=0.5)
171
172 assert s.outerShell().Area() == approx(6 * 4)
173 assert len(s.innerShells()) == 1
174 assert s.innerShells()[0].Area() == approx(6 * 1)
175
176
177def test_curvature():

Callers

nothing calls this directly

Calls 5

boxFunction · 0.90
outerShellMethod · 0.80
innerShellsMethod · 0.80
movedMethod · 0.45
AreaMethod · 0.45

Tested by

no test coverage detected