Skip to content

Commit 9855fc2

Browse files
committed
Improved cone docstring. Removed saveModel from cone test.
1 parent 0708779 commit 9855fc2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cadquery/cq.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3831,11 +3831,14 @@ def cone(
38313831
:type combine: true to combine shapes, false otherwise
38323832
:param clean: call :py:meth:`clean` afterwards to have a clean shape
38333833
:return: A cone object for each point on the stack
3834+
38343835
One cone is created for each item on the current stack. If no items are on the stack, one
38353836
cone is created using the current workplane center.
3837+
38363838
If combine is true, the result will be a single object on the stack. If a solid was found
38373839
in the chain, the result is that solid with all cones produced fused onto it otherwise,
38383840
the result is the combination of all the produced cones.
3841+
38393842
If combine is false, the result will be a list of the cones produced.
38403843
"""
38413844

tests/test_cadquery.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,13 +2477,11 @@ def testCylinderCentering(self):
24772477
)
24782478
def testConeDefaults(self):
24792479
s = Workplane("XY").cone(40, 10)
2480-
self.saveModel(s)
24812480
self.assertEqual(1, s.size())
24822481
self.assertEqual(1, s.solids().size())
24832482
self.assertEqual(2, s.faces().size())
24842483
self.assertEqual(2, s.vertices().size())
24852484
s1 = Workplane("XY").cone(40, radius1=10, radius2=5)
2486-
self.saveModel(s)
24872485
self.assertEqual(1, s1.size())
24882486
self.assertEqual(1, s1.solids().size())
24892487
self.assertEqual(3, s1.faces().size())

0 commit comments

Comments
 (0)