- Timestamp:
- 11/15/17 12:30:13 (7 years ago)
- Location:
- branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Packer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Packer/BinPacker.cs
r15471 r15473 54 54 /// <param name="packingItem"></param> 55 55 /// <param name="position"></param> 56 protected v oid PackItem(refBinPacking3D packingBin, int itemId, PackingItem packingItem, PackingPosition position, bool useStackingConstraints) {56 protected virtual void PackItem(BinPacking3D packingBin, int itemId, PackingItem packingItem, PackingPosition position, bool useStackingConstraints) { 57 57 58 58 packingBin.PackItem(itemId, packingItem, position); -
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Packer/BinPackerFirstFit.cs
r15471 r15473 67 67 // if a valid packing position could be found, the current item can be added to the given bin 68 68 if (position != null) { 69 PackItem( refpackingBin, itemId, items[itemId], position, useStackingConstraints);69 PackItem(packingBin, itemId, items[itemId], position, useStackingConstraints); 70 70 remainingIds.Remove(itemId); 71 71 } -
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Packer/BinPackerFreeVolumeBestFit.cs
r15471 r15473 64 64 var bin = packingBin; 65 65 if (positionFound) { 66 PackItem( refbin, remainingId, item, position, useStackingConstraints);66 PackItem(bin, remainingId, item, position, useStackingConstraints); 67 67 break; 68 68 } … … 77 77 } 78 78 79 PackItem( refpackingBin, remainingId, item, position, useStackingConstraints);79 PackItem(packingBin, remainingId, item, position, useStackingConstraints); 80 80 packingList.Add(packingBin); 81 81 } -
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Packer/BinPackerResidualSpaceBestFit.cs
r15471 r15473 56 56 if (point.Item1.IsPositionFeasible(item, point.Item2, useStackingConstraints)) { 57 57 var binPacking = point.Item1; 58 PackItem( refbinPacking, remainingId, item, point.Item2, useStackingConstraints);58 PackItem(binPacking, remainingId, item, point.Item2, useStackingConstraints); 59 59 packed = true; 60 60 break; … … 66 66 var position = FindPackingPositionForItem(binPacking, item, useStackingConstraints, rotated); 67 67 if (position != null) { 68 PackItem( refbinPacking, remainingId, item, position, useStackingConstraints);68 PackItem(binPacking, remainingId, item, position, useStackingConstraints); 69 69 } else { 70 70 throw new InvalidOperationException("Item " + remainingId + " cannot be packed in an empty bin.");
Note: See TracChangeset
for help on using the changeset viewer.