Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/13 17:51:14 (11 years ago)
Author:
jhelm
Message:

#1966: Implemented new encoding (MultiComponentVector/MCV); Implemented move-operators for MCV and GV encodings; Implemented new decoding-methods for PS, GV and MCV encodings (ExtremePoint-based packing);

Location:
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Shapes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Shapes/CuboidPackingShape.cs

    r9348 r9440  
    5353
    5454    #region Helpers
    55     public int MultipliedMeasures { get { return Height * Width * Depth; } }
     55    public int MultipliedMeasures { get { return Width * Height * Depth; } }
    5656   
    5757    public override bool Encloses(ThreeDimensionalPacking checkedPosition, PackingShape<ThreeDimensionalPacking> checkedShape) {
     
    162162        y1 = myPosition.Y;
    163163        z1 = myPosition.Z;
    164         x2 = myPosition.X + myShape.Width;
     164        x2 = myPosition.X + (myPosition.Rotated ? myShape.Depth : myShape.Width);
    165165        y2 = myPosition.Y + myShape.Height;
    166         z2 = myPosition.Z + myShape.Depth;
     166        z2 = myPosition.Z + (myPosition.Rotated ? myShape.Width : myShape.Depth);
    167167      }
    168168    }
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Shapes/RectangularPackingShape.cs

    r9348 r9440  
    142142        x1 = myPosition.X;
    143143        y1 = myPosition.Y;
    144         x2 = myPosition.X + myShape.Width;
    145         y2 = myPosition.Y + myShape.Height;
     144        x2 = myPosition.X + (myPosition.Rotated ? myShape.Height : myShape.Width);
     145        y2 = myPosition.Y + (myPosition.Rotated ? myShape.Width : myShape.Height);
    146146      }
    147147    }
Note: See TracChangeset for help on using the changeset viewer.