committed by
Yorik van Havre
parent
a83dd308bd
commit
9f2e774daf
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user