MCPcopy Index your code
hub / github.com/CadQuery/cadquery / testIsInside

Method testIsInside

tests/test_cadquery.py:3213–3221  ·  view source on GitHub ↗

Testing if one box is inside of another.

(self)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 6

WorkplaneClass · 0.85
boxMethod · 0.80
XYMethod · 0.80
isInsideMethod · 0.45
BoundingBoxMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected