Changeset 14977
- Timestamp:
- 05/12/17 14:55:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BinPackingExtension/HeuristicLab.Problems.BinPacking/3.3/3D/BinPacking3D.cs
r14976 r14977 349 349 foreach (var ep in ExtremePoints) { 350 350 if (ep.Z >= pos.Z && ep.Z <= pos.Z + item.Depth) { 351 if (ep.X <= pos.X && ep.Y > = pos.Y && ep.Y <=pos.Y + item.Height) {351 if (ep.X <= pos.X && ep.Y > pos.Y && ep.Y < pos.Y + item.Height) { 352 352 var diff = pos.X - ep.X; 353 353 var newRSX = ResidualSpace[ep].Item1 < diff ? ResidualSpace[ep].Item1 : diff; 354 354 ResidualSpace[ep] = Tuple.Create(newRSX, ResidualSpace[ep].Item2, ResidualSpace[ep].Item3); 355 355 } 356 if (ep.Y <= pos.Y && ep.X > = pos.X && ep.X <=pos.X + item.Width) {356 if (ep.Y <= pos.Y && ep.X > pos.X && ep.X < pos.X + item.Width) { 357 357 var diff = pos.Y - ep.Y; 358 358 var newRSY = ResidualSpace[ep].Item2 < diff ? ResidualSpace[ep].Item2 : diff; … … 361 361 } 362 362 if (ep.Z <= pos.Z && 363 ep.Y > = pos.Y && ep.Y <=pos.Y + item.Height &&364 ep.X > = pos.X && ep.X <=pos.X + item.Width) {363 ep.Y > pos.Y && ep.Y < pos.Y + item.Height && 364 ep.X > pos.X && ep.X < pos.X + item.Width) { 365 365 var diff = pos.Z - ep.Z; 366 366 var newRSZ = ResidualSpace[ep].Item3 < diff ? ResidualSpace[ep].Item3 : diff;
Note: See TracChangeset
for help on using the changeset viewer.