MCPcopy Create free account
hub / github.com/CadQuery/cadquery / test_remove

Function test_remove

tests/test_shapes.py:303–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301
302
303def test_remove():
304
305 b = box(2, 2, 2) - box(1, 1, 1).moved(z=0.5)
306
307 assert len(b.Faces()) == 12
308
309 br = b.remove(*b.innerShells())
310
311 assert len(br.Faces()) == 6
312 assert br.isValid()
313
314
315def test_addCavity():

Callers

nothing calls this directly

Calls 6

boxFunction · 0.90
innerShellsMethod · 0.80
isValidMethod · 0.80
movedMethod · 0.45
FacesMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected