Changeset 14154 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Container3DView.xaml.cs
- Timestamp:
- 07/21/16 15:08:21 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Container3DView.xaml.cs
r14151 r14154 47 47 public Container3DView() { 48 48 InitializeComponent(); 49 camMain.Position = new Point3D(0.5, 2, 2); // for design time we use a different camera position49 camMain.Position = new Point3D(0.5, 3, 3); // for design time we use a different camera position 50 50 Clear(); 51 51 } … … 80 80 // - from rotation and Z-ordering 81 81 82 foreach (var item in packing.Item Measures.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]; 84 84 85 85 var w = position.Rotated ? item.Value.Depth : item.Value.Width; … … 98 98 } 99 99 100 var container = packing.Bin Measures;100 var container = packing.BinShape; 101 101 // draw a transparent container 102 102 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.