Use __or__ & __and__

This commit is contained in:
Ruben
2021-01-16 10:58:51 +01:00
parent 278f5aa2d8
commit 583a46b78e
2 changed files with 8 additions and 8 deletions

View File

@ -1338,7 +1338,7 @@ class TestCadQuery(BaseTest):
b1.intersect(b2.faces().val())
# Test syntactic sugar [__mul__ method]
sugar = b1 * b2
sugar = b1 & b2
self.assertEqual(resS.val().Volume(), sugar.val().Volume())
def testBoundingBox(self):
@ -2184,7 +2184,7 @@ class TestCadQuery(BaseTest):
resS.union(toUnion.faces().val())
# Test syntactic sugar [__add__ method]
sugar = currentS + toUnion
sugar = currentS | toUnion
self.assertEqual(resS.faces().size(), sugar.faces().size())
def testCombine(self):