Merge pull request #3568 from Russ4262/3D_Surface_fixes_2

[Path] 3D Surface and Waterline: FinalDepth guess and `InternalFeaturesCut` fixes
This commit is contained in:
sliptonic
2020-06-19 11:10:14 -05:00
committed by GitHub
5 changed files with 101 additions and 36 deletions

View File

@@ -436,6 +436,17 @@ class ObjectSurface(PathOp.ObjectOp):
except Part.OCCError as e:
PathLog.error(e)
obj.OpFinalDepth = zmin
elif self.job:
if hasattr(obj, 'BoundBox'):
if obj.BoundBox == 'BaseBoundBox':
models = self.job.Model.Group
zmin = models[0].Shape.BoundBox.ZMin
for M in models:
zmin = min(zmin, M.Shape.BoundBox.ZMin)
obj.OpFinalDepth = zmin
if obj.BoundBox == 'Stock':
models = self.job.Stock
obj.OpFinalDepth = self.job.Stock.Shape.BoundBox.ZMin
def opExecute(self, obj):
'''opExecute(obj) ... process surface operation'''