Skip to content

Commit 261af96

Browse files
committed
Improved cone docstring. Removed saveModel from cone test.
1 parent 78ae970 commit 261af96

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

cadquery/cq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3834,7 +3834,7 @@ def cone(
38343834
:return: A cone object for each point on the stack
38353835
38363836
One cone is created for each item on the current stack. If no items are on the stack, one
3837-
box using the current workplane center is created.
3837+
cone is created using the current workplane center.
38383838
38393839
If combine is true, the result will be a single object on the stack. If a solid was found
38403840
in the chain, the result is that solid with all cones produced fused onto it otherwise,

tests/test_cadquery.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,13 +2445,11 @@ def testSphereCombine(self):
24452445

24462446
def testConeDefaults(self):
24472447
s = Workplane("XY").cone(40, 10)
2448-
self.saveModel(s)
24492448
self.assertEqual(1, s.size())
24502449
self.assertEqual(1, s.solids().size())
24512450
self.assertEqual(2, s.faces().size())
24522451
self.assertEqual(2, s.vertices().size())
24532452
s1 = Workplane("XY").cone(40, radius1=10, radius2=5)
2454-
self.saveModel(s)
24552453
self.assertEqual(1, s1.size())
24562454
self.assertEqual(1, s1.solids().size())
24572455
self.assertEqual(3, s1.faces().size())

0 commit comments

Comments
 (0)