Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/12/18 14:19:06 (7 years ago)
Author:
rhanghof
Message:

#2817:

  • Fixed a bug at creating the extreme points with the point projection based method.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Packer/BinPackerMinRSLeft.cs

    r15822 r15838  
    245245      packingItem.Rotated = rsd.Item.Rotated;
    246246      packingItem.Tilted = rsd.Item.Tilted;
     247
    247248      return rsd.Position;
    248249    }
     
    254255          $"Item: ({packingItem.Width} {packingItem.Depth} {packingItem.Height})");
    255256      }
    256 
    257       var rsd = CalculateResidalSpaceDifferences(packingBin, packingItem, useStackingConstraints).Where(x => x != null).FirstOrDefault();
     257           
     258      var rsds = CalculateResidalSpaceDifferences(packingBin, packingItem, useStackingConstraints).Where(x => x != null);
     259      var rsd = rsds.FirstOrDefault();
     260
    258261
    259262      if (rsd == null) {
     
    263266      packingItem.Rotated = rsd.Item.Rotated;
    264267      packingItem.Tilted = rsd.Item.Tilted;
     268     
    265269      return rsd.Position;
    266270    }
Note: See TracChangeset for help on using the changeset viewer.