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

Method test_cutFromBase

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

Source from the content-addressed store, hash-verified

5554 self.assertGreater(new_box.val().Volume(), box.val().Volume())
5555
5556 def test_cutFromBase(self):
5557 # Test the helper method _cutFromBase
5558
5559 box = Workplane().box(10, 10, 10)
5560 sphere = Workplane().sphere(2)
5561 hoolow_box = box._cutFromBase(sphere.val())
5562
5563 self.assertGreater(box.val().Volume(), hoolow_box.val().Volume())
5564
5565 def test_MergeTags(self):
5566

Callers

nothing calls this directly

Calls 6

WorkplaneClass · 0.85
boxMethod · 0.80
sphereMethod · 0.80
_cutFromBaseMethod · 0.80
VolumeMethod · 0.80
valMethod · 0.45

Tested by

no test coverage detected