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

Function test_hollow_open

tests/test_free_functions.py:750–762  ·  view source on GitHub ↗
(box_shape)

Source from the content-addressed store, hash-verified

748
749
750def test_hollow_open(box_shape):
751
752 # offset inwards
753 res1 = hollow(box_shape, box_shape.faces(">Z"), -0.1)
754
755 # offset outwards
756 res2 = hollow(box_shape, box_shape.faces(">Z"), 0.1)
757
758 assert res1.isValid()
759 assert res1.faces().size() == 6 + 5
760
761 assert res2.isValid()
762 assert res2.faces().size() == 6 + 5
763
764
765def test_prism(box_shape):

Callers

nothing calls this directly

Calls 4

hollowFunction · 0.85
isValidMethod · 0.80
facesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected