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

Method testTwistExtrude

tests/test_cadquery.py:1330–1337  ·  view source on GitHub ↗

Tests extrusion while twisting through an angle.

(self)

Source from the content-addressed store, hash-verified

1328 self.saveModel(defaultSweep)
1329
1330 def testTwistExtrude(self):
1331 """
1332 Tests extrusion while twisting through an angle.
1333 """
1334 profile = Workplane("XY").rect(10, 10)
1335 r = profile.twistExtrude(10, 45, False)
1336
1337 self.assertEqual(6, r.faces().size())
1338
1339 def testTwistExtrudeCombineCut(self):
1340 """

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