コード例 #1
0
 protected override BinPacking3D CreatePacking(
   Solution partialSolution,
   ref IList<int> remainingIDs, IList<PackingItem> items, bool useStackingConstraints) {
   var bp = new BinPacking3D(partialSolution.BinShape);
   bp.ExtremePointBasedPacking(ref remainingIDs, items, useStackingConstraints);
   return bp;
 }
コード例 #2
0
 protected override PackingPosition FindPositionForItem(BinPacking3D bp, PackingItem item, bool useStackingConstraints) {
   return bp.FindExtremePointForItem(item, rotated: false, stackingConstraints: useStackingConstraints);
 }
コード例 #3
0
 protected override PackingPosition FindPositionForItem(BinPacking3D bp, PackingItem item, bool useStackingConstraints) {
   return bp.FindPositionBySliding(item, rotated: false);
 }