Merge pull request #4615 from Russ4262/fix_pocketshape_combine_shapes

[Path] Fix connected multi-face clearing bug
This commit is contained in:
sliptonic
2021-03-22 13:53:55 -05:00
committed by GitHub

View File

@@ -389,6 +389,10 @@ class ObjectPocket(PathPocketBase.ObjectPocket):
self.horiz.append(face)
self.exts.append(face)
# Place all self.horiz faces into same working plane
for h in self.horiz:
h.translate(FreeCAD.Vector(0.0, 0.0, 0.0 - h.BoundBox.ZMin))
# check all faces and see if they are touching/overlapping and combine those into a compound
self.horizontal = [] # pylint: disable=attribute-defined-outside-init
for shape in PathGeom.combineConnectedShapes(self.horiz):