From 58683d0eb015c101bca7f385b0a18049919b819a Mon Sep 17 00:00:00 2001 From: adam-urbanczyk Date: Sun, 22 May 2016 21:39:54 +0200 Subject: [PATCH] Testcase for symmetric extrusion Added a test case for symmetric extrusion operation. --- tests/TestCadQuery.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/TestCadQuery.py b/tests/TestCadQuery.py index 7947ee1..f12165a 100644 --- a/tests/TestCadQuery.py +++ b/tests/TestCadQuery.py @@ -1387,3 +1387,27 @@ class TestCadQuery(BaseTest): result =topOfLid.union(bottom) self.saveModel(result) + + def testExtrude(self): + """ + Test symmetric extrude + """ + r = 1. + h = 1. + decimal_places = 9. + + #extrude symmetrically + s = Workplane("XY").circle(r).extrude(h,both=True) + + top_face = s.faces(">Z") + bottom_face = s.faces("