Added a cone test for the revolve feature, and bumped the version number to 0.1.7.

This commit is contained in:
Jeremy Wright 2014-10-20 22:47:15 -04:00
parent 3bf871b0ea
commit 365652a68c
2 changed files with 5 additions and 4 deletions

View File

@ -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',

View File

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