added clean parameter to box() method
This commit is contained in:
@ -2243,7 +2243,7 @@ class Workplane(CQ):
|
|||||||
|
|
||||||
return Compound.makeCompound(toFuse)
|
return Compound.makeCompound(toFuse)
|
||||||
|
|
||||||
def box(self, length, width, height, centered=(True, True, True), combine=True):
|
def box(self, length, width, height, centered=(True, True, True), combine=True, clean=True):
|
||||||
"""
|
"""
|
||||||
Return a 3d box with specified dimensions for each object on the stack.
|
Return a 3d box with specified dimensions for each object on the stack.
|
||||||
|
|
||||||
@ -2305,7 +2305,7 @@ class Workplane(CQ):
|
|||||||
return boxes
|
return boxes
|
||||||
else:
|
else:
|
||||||
#combine everything
|
#combine everything
|
||||||
return self.union(boxes)
|
return self.union(boxes, clean=clean)
|
||||||
|
|
||||||
def sphere(self, radius, direct=(0, 0, 1), angle1=-90, angle2=90, angle3=360,
|
def sphere(self, radius, direct=(0, 0, 1), angle1=-90, angle2=90, angle3=360,
|
||||||
centered=(True, True, True), combine=True):
|
centered=(True, True, True), combine=True):
|
||||||
|
|||||||
Reference in New Issue
Block a user