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

Method testRevolveCut

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

Source from the content-addressed store, hash-verified

665 self.assertEqual(2, result.edges().size())
666
667 def testRevolveCut(self):
668 box = Workplane().box(10, 10, 10)
669 cut = (
670 box.transformed((90, 0, 0))
671 .move(5, 0)
672 .rect(3, 4, centered=False)
673 .revolve(360, (0, 0, 0), (0, 1, 0), combine="cut")
674 )
675
676 self.assertGreater(box.val().Volume(), cut.val().Volume())
677
678 def testRevolveErrors(self):
679 """

Callers

nothing calls this directly

Calls 8

WorkplaneClass · 0.85
boxMethod · 0.80
transformedMethod · 0.80
VolumeMethod · 0.80
revolveMethod · 0.45
rectMethod · 0.45
moveMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected