Improved LeadInOut; Better layer handling

This commit is contained in:
Patrick Felixberger
2020-03-17 19:13:56 +01:00
parent 2088cdfeb8
commit d586eea42e
3 changed files with 189 additions and 102 deletions

View File

@@ -134,7 +134,7 @@ class ObjectProfile(PathProfileBase.ObjectProfile):
if FreeCAD.GuiUp:
import FreeCADGui
FreeCADGui.ActiveDocument.getObject(tmpGrpNm).Visibility = False
return shapes
def _flattenWire(self, obj, wire, trgtDep):
@@ -297,12 +297,10 @@ class ObjectProfile(PathProfileBase.ObjectProfile):
# Determine with which set of intersection tags the model intersects
(cmnIntArea, cmnExtArea) = self._checkTagIntersection(iTAG, eTAG, 'QRY', comFC)
if cmnExtArea > cmnIntArea:
PathLog.debug('Cutting on Ext side.')
self.cutSide = 'E'
self.cutSideTags = eTAG.Shape
tagCOM = begExt.CenterOfMass
else:
PathLog.debug('Cutting on Int side.')
self.cutSide = 'I'
self.cutSideTags = iTAG.Shape
tagCOM = begInt.CenterOfMass