Code clean up

This commit is contained in:
Patrick Felixberger
2020-03-17 22:18:47 +01:00
parent a171fb2db5
commit 02e44de028
3 changed files with 7 additions and 82 deletions

View File

@@ -297,10 +297,12 @@ 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