Merge pull request #335 from CadQuery/master

Merge latest master
This commit is contained in:
Adam Urbańczyk
2020-05-01 08:46:29 +02:00
committed by GitHub
3 changed files with 14 additions and 9 deletions

View File

@ -1503,7 +1503,12 @@ class TestCadQuery(BaseTest):
r = Workplane("XY").box(1, 1, 1)
dim = r.largestDimension()
self.assertAlmostEqual(8.7, dim, 1)
self.assertAlmostEqual(1.76, dim, 1)
r = Workplane("XY").rect(1, 1).extrude(1)
dim = r.largestDimension()
self.assertAlmostEqual(1.76, dim, 1)
r = Workplane("XY")
dim = r.largestDimension()
@ -1728,7 +1733,6 @@ class TestCadQuery(BaseTest):
# Tests the case where the depth of the cboreHole is not specified
c2 = CQ(makeCube(3.0))
pnts = [(-1.0, -1.0), (0.0, 0.0), (1.0, 1.0)]
c2 = c2.faces(">Z").workplane().pushPoints(pnts).cboreHole(0.1, 0.25, 0.25)
self.assertEqual(15, c2.faces().size())