Ignore:
Timestamp:
08/04/17 17:00:16 (4 years ago)
Author:
abeham
Message:

#2817:

  • Drawing extreme points in the visualization (will add a checkbox to the view to enable/disable this)
  • Fixing some bugs:
    • Updating residual space of extreme points before generating new extreme points
    • Fixed calculation of residual space for new extreme points by calculating intersections
    • Fixed bug in UpdateResidualSpace regarding > and >=
File:
1 edited

Legend:

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

    r15167 r15306  
    153153          modelGroup.Children.Add(selectedModel);
    154154        }
     155      }
     156
     157      // draw extreme-points
     158      foreach (var ep in packing.ExtremePoints) {
     159        var epModel = new GeometryModel3D { Geometry = new MeshGeometry3D(), Material = new DiffuseMaterial() { Brush = new SolidColorBrush(Colors.Red) } };
     160        AddSolidCube((MeshGeometry3D)epModel.Geometry, ep.X, ep.Y, ep.Z, 10, 10, 10);
     161        modelGroup.Children.Add(epModel);
    155162      }
    156163
Note: See TracChangeset for help on using the changeset viewer.