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

Method test_all_planes

tests/test_workplanes.py:164–170  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

162 self.assertAlmostEqual(b2.findSolid().Volume(), 2, 5)
163
164 def test_all_planes(self):
165 b2 = Workplane().box(1, 1, 1)
166 for p in ["XY", "YX", "XZ", "ZX", "YZ", "ZY"]:
167 b2 = b2.mirror(p)
168 bbBox = b2.findSolid().BoundingBox()
169 assert [bbBox.xlen, bbBox.ylen, bbBox.zlen] == [1.0, 1.0, 1.0]
170 self.assertAlmostEqual(b2.findSolid().Volume(), 1, 5)
171
172 def test_bad_plane_input(self):
173 b2 = Workplane().box(1, 1, 1)

Callers

nothing calls this directly

Calls 6

WorkplaneClass · 0.85
boxMethod · 0.80
findSolidMethod · 0.80
VolumeMethod · 0.80
mirrorMethod · 0.45
BoundingBoxMethod · 0.45

Tested by

no test coverage detected