From 365652a68c4c9b78ed68b7b4f622e7f419e1c7e9 Mon Sep 17 00:00:00 2001 From: Jeremy Wright Date: Mon, 20 Oct 2014 22:47:15 -0400 Subject: [PATCH] Added a cone test for the revolve feature, and bumped the version number to 0.1.7. --- setup.py | 2 +- tests/TestCadQuery.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 40de6e5..b8f5ad1 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='cadquery', - version='0.1.6', + version='0.1.7', url='https://github.com/dcowden/cadquery', license='LGPL', author='David Cowden', diff --git a/tests/TestCadQuery.py b/tests/TestCadQuery.py index 8dad429..054bd6a 100644 --- a/tests/TestCadQuery.py +++ b/tests/TestCadQuery.py @@ -295,9 +295,10 @@ class TestCadQuery(BaseTest): Test creating a solid from a revolved triangle :return: """ - triangle_1st = (0,0) - triangle_2nd = (0,10) - triangle_3rd = (10,0) + result = Workplane("XY").lineTo(0,10).lineTo(5,0).close().revolve() + self.assertEqual(2, result.faces().size()) + self.assertEqual(2, result.vertices().size()) + self.assertEqual(3, result.edges().size()) def testRectArray(self): NUMX=3