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( setup(
name='cadquery', name='cadquery',
version='0.1.6', version='0.1.7',
url='https://github.com/dcowden/cadquery', url='https://github.com/dcowden/cadquery',
license='LGPL', license='LGPL',
author='David Cowden', author='David Cowden',

View File

@ -295,9 +295,10 @@ class TestCadQuery(BaseTest):
Test creating a solid from a revolved triangle Test creating a solid from a revolved triangle
:return: :return:
""" """
triangle_1st = (0,0) result = Workplane("XY").lineTo(0,10).lineTo(5,0).close().revolve()
triangle_2nd = (0,10) self.assertEqual(2, result.faces().size())
triangle_3rd = (10,0) self.assertEqual(2, result.vertices().size())
self.assertEqual(3, result.edges().size())
def testRectArray(self): def testRectArray(self):
NUMX=3 NUMX=3