Path: Fix MillFace default values

fixes #3324
This commit is contained in:
sliptonic
2018-01-24 13:02:45 -06:00
committed by Yorik van Havre
parent a83dd308bd
commit 9f2e774daf
3 changed files with 40 additions and 12 deletions

View File

@@ -101,6 +101,12 @@ class ObjectContour(PathProfileBase.ObjectProfile):
params['Coplanar'] = 2
return params
def updateDepths(self, obj, ignoreErrors=False):
stockBB = self.stock.Shape.BoundBox
obj.OpFinalDepth = stockBB.ZMin
obj.OpStartDepth = stockBB.ZMax
def Create(name):
'''Create(name) ... Creates and returns a Contour operation.'''
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)