Changeset 15822 for branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/ExtremePointCreation
- Timestamp:
- 02/28/18 15:33:30 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/ExtremePointCreation/PointProjectionBasedEPCreator.cs
r15820 r15822 50 50 } 51 51 52 // generate all new extreme points parallel. This speeds up the creator. 53 var items = binPacking.Items.OrderBy(x => x.Value.Layer); 54 Parallel.ForEach(items.Where(x => x.Value.Layer < item.Layer), i => { 55 PackingItem it = i.Value; 56 PackingPosition pos = binPacking.Positions[i.Key]; 57 GenerateNewExtremePointsForItem(binPacking, it, pos); 58 }); 59 60 Parallel.ForEach(items.Where(x => x.Value.Layer >= item.Layer), i => { 52 // generate all new extreme points parallel. This speeds up the creator. 53 Parallel.ForEach(binPacking.Items, i => { 61 54 PackingItem it = i.Value; 62 55 PackingPosition pos = binPacking.Positions[i.Key];
Note: See TracChangeset
for help on using the changeset viewer.