- Timestamp:
- 05/04/13 17:51:14 (11 years ago)
- 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 53 53 54 54 #region Helpers 55 public int MultipliedMeasures { get { return Height * Width* Depth; } }55 public int MultipliedMeasures { get { return Width * Height * Depth; } } 56 56 57 57 public override bool Encloses(ThreeDimensionalPacking checkedPosition, PackingShape<ThreeDimensionalPacking> checkedShape) { … … 162 162 y1 = myPosition.Y; 163 163 z1 = myPosition.Z; 164 x2 = myPosition.X + myShape.Width;164 x2 = myPosition.X + (myPosition.Rotated ? myShape.Depth : myShape.Width); 165 165 y2 = myPosition.Y + myShape.Height; 166 z2 = myPosition.Z + myShape.Depth;166 z2 = myPosition.Z + (myPosition.Rotated ? myShape.Width : myShape.Depth); 167 167 } 168 168 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Shapes/RectangularPackingShape.cs
r9348 r9440 142 142 x1 = myPosition.X; 143 143 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); 146 146 } 147 147 }
Note: See TracChangeset
for help on using the changeset viewer.