File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3831,11 +3831,14 @@ def cone(
3831
3831
:type combine: true to combine shapes, false otherwise
3832
3832
:param clean: call :py:meth:`clean` afterwards to have a clean shape
3833
3833
:return: A cone object for each point on the stack
3834
+
3834
3835
One cone is created for each item on the current stack. If no items are on the stack, one
3835
3836
cone is created using the current workplane center.
3837
+
3836
3838
If combine is true, the result will be a single object on the stack. If a solid was found
3837
3839
in the chain, the result is that solid with all cones produced fused onto it otherwise,
3838
3840
the result is the combination of all the produced cones.
3841
+
3839
3842
If combine is false, the result will be a list of the cones produced.
3840
3843
"""
3841
3844
Original file line number Diff line number Diff line change @@ -2477,13 +2477,11 @@ def testCylinderCentering(self):
2477
2477
)
2478
2478
def testConeDefaults (self ):
2479
2479
s = Workplane ("XY" ).cone (40 , 10 )
2480
- self .saveModel (s )
2481
2480
self .assertEqual (1 , s .size ())
2482
2481
self .assertEqual (1 , s .solids ().size ())
2483
2482
self .assertEqual (2 , s .faces ().size ())
2484
2483
self .assertEqual (2 , s .vertices ().size ())
2485
2484
s1 = Workplane ("XY" ).cone (40 , radius1 = 10 , radius2 = 5 )
2486
- self .saveModel (s )
2487
2485
self .assertEqual (1 , s1 .size ())
2488
2486
self .assertEqual (1 , s1 .solids ().size ())
2489
2487
self .assertEqual (3 , s1 .faces ().size ())
You can’t perform that action at this time.
0 commit comments