MCPcopy Index your code
hub / github.com/CadQuery/cadquery / testTwistExtrudeCombineCut

Method testTwistExtrudeCombineCut

tests/test_cadquery.py:1339–1350  ·  view source on GitHub ↗

Tests extrusion while twisting through an angle, removing the solid from the base solid

(self)

Source from the content-addressed store, hash-verified

1337 self.assertEqual(6, r.faces().size())
1338
1339 def testTwistExtrudeCombineCut(self):
1340 """
1341 Tests extrusion while twisting through an angle, removing the solid from the base solid
1342 """
1343 box = Workplane().box(10, 10, 10)
1344 cut = (
1345 box.faces(">Z")
1346 .workplane(invert=True)
1347 .rect(1.5, 5)
1348 .twistExtrude(10, 90, combine="cut")
1349 )
1350 self.assertGreater(box.val().Volume(), cut.val().Volume())
1351
1352 def testTwistExtrudeCombine(self):
1353 """

Callers

nothing calls this directly

Calls 8

WorkplaneClass · 0.85
boxMethod · 0.80
twistExtrudeMethod · 0.80
workplaneMethod · 0.80
VolumeMethod · 0.80
rectMethod · 0.45
facesMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected