Relax bounding box related tests
This commit is contained in:
@ -43,7 +43,7 @@ class TestCadObjects(BaseTest):
|
|||||||
|
|
||||||
bb1 = v.BoundingBox().add(v2.BoundingBox())
|
bb1 = v.BoundingBox().add(v2.BoundingBox())
|
||||||
|
|
||||||
self.assertAlmostEquals(bb1.xlen, 1.0) #OCC uses some approximations
|
self.assertAlmostEquals(bb1.xlen, 1.0, 1) #OCC uses some approximations
|
||||||
|
|
||||||
def testEdgeWrapperCenter(self):
|
def testEdgeWrapperCenter(self):
|
||||||
e = self._make_circle()
|
e = self._make_circle()
|
||||||
|
@ -766,7 +766,7 @@ class TestCadQuery(BaseTest):
|
|||||||
r = Workplane('XY').box(1, 1, 1)
|
r = Workplane('XY').box(1, 1, 1)
|
||||||
dim = r.largestDimension()
|
dim = r.largestDimension()
|
||||||
|
|
||||||
self.assertAlmostEqual(8.66025403784, dim)
|
self.assertAlmostEqual(8.7, dim, 1)
|
||||||
|
|
||||||
r = Workplane('XY')
|
r = Workplane('XY')
|
||||||
dim = r.largestDimension()
|
dim = r.largestDimension()
|
||||||
|
Reference in New Issue
Block a user