Testing if one box is inside of another.
(self)
| 3211 | self.saveModel(result) |
| 3212 | |
| 3213 | def testIsInside(self): |
| 3214 | """ |
| 3215 | Testing if one box is inside of another. |
| 3216 | """ |
| 3217 | box1 = Workplane(Plane.XY()).box(10, 10, 10) |
| 3218 | box2 = Workplane(Plane.XY()).box(5, 5, 5) |
| 3219 | |
| 3220 | self.assertFalse(box2.val().BoundingBox().isInside(box1.val().BoundingBox())) |
| 3221 | self.assertTrue(box1.val().BoundingBox().isInside(box2.val().BoundingBox())) |
| 3222 | |
| 3223 | def testCup(self): |
| 3224 | """ |