enabled autoSimplify for cut and cutblind

This commit is contained in:
hyOzd 2015-07-19 17:11:51 +03:00
parent 88c0195ba4
commit 506358db42

View File

@ -2077,8 +2077,12 @@ class Workplane(CQ):
raise ValueError("Cannot cut Type '%s' " % str(type(toCut)))
newS = solidRef.cut(solidToCut)
if self.ctx.autoSimplifyEnabled: newS = newS.simplify()
if combine:
solidRef.wrapped = newS.wrapped
return self.newObject([newS])
def cutBlind(self, distanceToCut):
@ -2107,6 +2111,9 @@ class Workplane(CQ):
solidRef = self.findSolid()
s = solidRef.cut(toCut)
if self.ctx.autoSimplifyEnabled: s = s.simplify()
solidRef.wrapped = s.wrapped
return self.newObject([s])