Forgot the first level code that calls _revolve.

This commit is contained in:
Jeremy Wright 2014-09-30 14:26:21 -04:00
parent e57b36c58c
commit a5923cfbed

View File

@ -1884,7 +1884,11 @@ class Workplane(CQ):
* if combine is true, the value is combined with the context solid if it exists, * if combine is true, the value is combined with the context solid if it exists,
and the resulting solid becomes the new context solid. and the resulting solid becomes the new context solid.
""" """
r = self._extrude(angleDegrees) #returns a Solid ( or a compound if there were multiple )
if combine:
return self._combineWithBase(r)
else:
return self.newObject([r])
def _combineWithBase2(self,obj): def _combineWithBase2(self,obj):
""" """
@ -2141,8 +2145,6 @@ class Workplane(CQ):
#Revolve the wires, make a compound out of them and then fuse them #Revolve the wires, make a compound out of them and then fuse them
toFuse = [] toFuse = []
for ws in wireSets: for ws in wireSets:
#TODO: Replace the line below with the equivalent revolve function
#thisObj = Solid.extrudeLinear(ws[0], ws[1:], eDir)
thisObj = Solid.revolve(ws[0], ws[1:], angleDegrees) thisObj = Solid.revolve(ws[0], ws[1:], angleDegrees)
toFuse.append(thisObj) toFuse.append(thisObj)