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

Method test_combineWithBase

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

Source from the content-addressed store, hash-verified

5545 self.assertEqual(vs3.toTuple(), approx((a, -a * math.tan(math.radians(45)), 0)))
5546
5547 def test_combineWithBase(self):
5548 # Test the helper mehod _combinewith
5549
5550 box = Workplane().box(10, 10, 10)
5551 sphere = box.faces(">Z").sphere(2)
5552 new_box = box._combineWithBase(sphere.val())
5553
5554 self.assertGreater(new_box.val().Volume(), box.val().Volume())
5555
5556 def test_cutFromBase(self):
5557 # Test the helper method _cutFromBase

Callers

nothing calls this directly

Calls 7

WorkplaneClass · 0.85
boxMethod · 0.80
sphereMethod · 0.80
_combineWithBaseMethod · 0.80
VolumeMethod · 0.80
facesMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected