Ignore:
Timestamp:
12/20/17 16:15:38 (2 years ago)
Author:
rhanghof
Message:

#2817:

  • Unittests
  • Bugfixes on the line projection based extreme point creation method
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking.Views/3.3/PackingPlan3DView.cs

    r15520 r15554  
    2424using HeuristicLab.MainForm;
    2525using HeuristicLab.Problems.BinPacking3D;
     26using System.Collections.Generic;
    2627
    2728namespace HeuristicLab.Problems.BinPacking.Views {
     
    7576        itemSelection.Items.Add(item.Key);
    7677      }
    77       foreach (var ep in ((BinPacking3D.BinPacking3D)packing).ExtremePoints) {
    78         var rs = ((BinPacking3D.BinPacking3D)packing).ResidualSpaces[ep];
     78      foreach (var extremPoint in ((BinPacking3D.BinPacking3D)packing).ExtremePoints) {
     79        var ep = extremPoint.Key;
    7980        extremePointsSelection.Items.Add($"({ep.X}, {ep.Y}, {ep.Z})");
    8081        packingPlan3D.ExtremePoints.Add(ep);
    81         packingPlan3D.ResidualSpaces.Add(ep, rs);
     82        packingPlan3D.ResidualSpaces.Add(ep, extremPoint.Value as IList<ResidualSpace>);
    8283      }
    8384
Note: See TracChangeset for help on using the changeset viewer.