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

Method testOpenCornerShell

tests/test_cadquery.py:2444–2456  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2442 self.assertEqual(len(s4_shell_2.Faces()), s1.faces().size())
2443
2444 def testOpenCornerShell(self):
2445 s = Workplane("XY").box(1, 1, 1)
2446 s1 = s.faces("+Z")
2447 s1.add(s.faces("+Y")).add(s.faces("+X"))
2448 self.saveModel(s1.shell(0.2))
2449
2450 # Tests the list option variation of add
2451 s1 = s.faces("+Z")
2452 s1.add(s.faces("+Y")).add([s.faces("+X")])
2453
2454 # Tests the raw object option variation of add
2455 s1 = s.faces("+Z")
2456 s1.add(s.faces("+Y")).add(s.faces("+X").val().wrapped)
2457
2458 def testTopFaceFillet(self):
2459 s = Workplane("XY").box(1, 1, 1).faces("+Z").edges().fillet(0.1)

Callers

nothing calls this directly

Calls 7

saveModelMethod · 0.95
WorkplaneClass · 0.85
boxMethod · 0.80
facesMethod · 0.45
addMethod · 0.45
shellMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected