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

Method testTwistExtrudeCombine

tests/test_cadquery.py:1352–1359  ·  view source on GitHub ↗

Tests extrusion while twisting through an angle, combining with other solids.

(self)

Source from the content-addressed store, hash-verified

1350 self.assertGreater(box.val().Volume(), cut.val().Volume())
1351
1352 def testTwistExtrudeCombine(self):
1353 """
1354 Tests extrusion while twisting through an angle, combining with other solids.
1355 """
1356 profile = Workplane("XY").rect(10, 10)
1357 r = profile.twistExtrude(10, 45)
1358
1359 self.assertEqual(6, r.faces().size())
1360
1361 def testRectArray(self):
1362 x_num = 3

Callers

nothing calls this directly

Calls 5

WorkplaneClass · 0.85
twistExtrudeMethod · 0.80
rectMethod · 0.45
sizeMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected