Extended cutThruAll coverage

This commit is contained in:
adam-urbanczyk
2019-03-05 21:34:54 +01:00
parent 06e340f893
commit 0764e2b65e

View File

@ -839,11 +839,16 @@ class TestCadQuery(BaseTest):
r = s.rect(2.0, 2.0).rect(
1.3, 1.3, forConstruction=True).vertices().circle(0.125).extrude(0.5)
# side hole, thru all
t = r.faces(">Y").workplane().circle(0.125).cutThruAll()
self.saveModel(t)
# thru all without explicit face selection
t = r.circle(0.5).cutThruAll()
self.assertEqual(11, t.faces().size())
# side hole, thru all
t = t.faces(">Y").workplane().circle(0.125).cutThruAll()
self.saveModel(t)
self.assertEqual(13, t.faces().size())
def testCutToFaceOffsetNOTIMPLEMENTEDYET(self):
"""
Tests cutting up to a given face, or an offset from a face