Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/13/17 09:47:49 (6 years ago)
Author:
rhanghof
Message:

#2817:

  • Changed the calculation algorithm for creating extreme points by using line based projection
  • Changed the calculation of the residual spaces for line based projection
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Geometry/Vector3D.cs

    r15488 r15520  
    7979    }
    8080
    81     public bool IsInside(PackingPosition pos, Tuple<int, int, int> rs) {
    82       return X >= pos.X && X < pos.X + rs.Item1
    83         && Y >= pos.Y && Y < pos.Y + rs.Item2
    84         && Z >= pos.Z && Z < pos.Z + rs.Item3;
     81    public bool IsInside(PackingPosition pos, ResidualSpace rs) {
     82      return X >= pos.X && X < pos.X + rs.Width
     83        && Y >= pos.Y && Y < pos.Y + rs.Height
     84        && Z >= pos.Z && Z < pos.Z + rs.Depth;
    8585    }
    8686
Note: See TracChangeset for help on using the changeset viewer.