Skip to content

Commit 51311f6

Browse files
FLinssktnr
authored andcommitted
Fix placement point removal logic to prevent unnecessary iterations
1 parent d4abeef commit 51311f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packingSolver/PlacementPoints.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ def RemoveRedundantPatterns(self, items, itemSpecificModifiedDimensions, itemSpe
400400
modifiedWidthS = modifiedItemDimensionsK[s]
401401
if s + modifiedWidthS <= p + modifiedWidthP:
402402
placementPoints.remove(p)
403+
break
403404

404405
def DetermineEnlargedItemDimensionsRight(self, items, axis, itemSpecificModifiedDimensions, itemSpecificPatternsRight, binDimension, preliminaryItemSpecificMeetInTheMiddlePatterns):
405406
for k, itemK in enumerate(items):

0 commit comments

Comments
 (0)