From 449ce66d646a562b55bb10fabacb9d6937488c8d Mon Sep 17 00:00:00 2001 From: adam-urbanczyk Date: Tue, 26 Feb 2019 18:39:41 +0100 Subject: [PATCH] Additonal tests for sweep --- tests/TestCadQuery.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/TestCadQuery.py b/tests/TestCadQuery.py index 26606393..d94a49f2 100644 --- a/tests/TestCadQuery.py +++ b/tests/TestCadQuery.py @@ -454,11 +454,18 @@ class TestCadQuery(BaseTest): for t in ('transformed','right','round'): path = Workplane("XZ").polyline(pts) - # Test defaults - result = Workplane("XY").circle(0.2).rect(0.2,0.1).rect(0.2,0.1)\ + result = Workplane("XY").circle(0.2).rect(0.2,0.1).rect(0.1,0.2)\ .sweep(path,transition=t) self.assertTrue(result.solids().val().isValid()) + # Polyline path and multiple inner profiles + path = Workplane("XZ").polyline(pts) + + # Test defaults + result = Workplane("XY").circle(0.2).rect(0.2,0.1).rect(0.1,0.2)\ + .circle(0.1).sweep(path) + self.assertTrue(result.solids().val().isValid()) + # Arc path path = Workplane("XZ").threePointArc((1.0, 1.5), (0.0, 1.0))