Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/21/16 15:08:21 (8 years ago)
Author:
gkronber
Message:

#1966: refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Container3DView.xaml.cs

    r14151 r14154  
    4747    public Container3DView() {
    4848      InitializeComponent();
    49       camMain.Position = new Point3D(0.5, 2, 2); // for design time we use a different camera position
     49      camMain.Position = new Point3D(0.5, 3, 3); // for design time we use a different camera position
    5050      Clear();
    5151    }
     
    8080      //  - from rotation and Z-ordering
    8181
    82       foreach (var item in packing.ItemMeasures.OrderBy(i => packing.ItemPositions[i.Key].Z)) {
    83         var position = packing.ItemPositions[item.Key];
     82      foreach (var item in packing.Items.OrderBy(i => packing.Positions[i.Key].Z)) {
     83        var position = packing.Positions[item.Key];
    8484
    8585        var w = position.Rotated ? item.Value.Depth : item.Value.Width;
     
    9898      }
    9999
    100       var container = packing.BinMeasures;
     100      var container = packing.BinShape;
    101101      // draw a transparent container
    102102      AddCube(meshTransparent, container.Origin.X, container.Origin.Y, container.Origin.Z, container.Width, container.Height, container.Depth, addInsideTriangles: true);
Note: See TracChangeset for help on using the changeset viewer.