Additonal tests for sweep

This commit is contained in:
adam-urbanczyk
2019-02-26 18:39:41 +01:00
parent d9f62d091d
commit 449ce66d64

View File

@ -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))