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

Function test_addCavity

tests/test_shapes.py:315–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313
314
315def test_addCavity():
316
317 b1 = box(2, 2, 2)
318 b2 = box(1, 1, 1).moved(z=0.5)
319
320 br = b1.addCavity(b2)
321
322 assert len(br.Faces()) == 12
323 assert len(br.Shells()) == 2
324 assert br.isValid()
325
326
327def test_replace():

Callers

nothing calls this directly

Calls 6

boxFunction · 0.90
addCavityMethod · 0.80
ShellsMethod · 0.80
isValidMethod · 0.80
movedMethod · 0.45
FacesMethod · 0.45

Tested by

no test coverage detected