- // index = patient station object, orientation = angle1 angle2 notFlag
- if (db.GetAreaGain(index) == 1.0) stop = true;
- else {
- if (index.orientation.notFlag) threshold = std::max(db.GetThreshold(index), threshold);
- else threshold = std::min(db.GetThreshold(index), threshold);
- // std::cout << db.GetThreshold(index) << " opt=" << threshold;
- }
+ if (index.direction.notFlag) threshold = std::max(db.GetThreshold(index), threshold);
+ else threshold = std::min(db.GetThreshold(index), threshold);