diff --git a/indexer/indexer_tool/feature_sorter.hpp b/indexer/indexer_tool/feature_sorter.hpp index e89a243678..c2de5ce388 100644 --- a/indexer/indexer_tool/feature_sorter.hpp +++ b/indexer/indexer_tool/feature_sorter.hpp @@ -35,22 +35,8 @@ namespace feature typedef mn::DistanceToLineSquare DistanceF; double const eps = my::sq(scales::GetEpsilonForSimplify(level)); - //SimplifyNearOptimal(20, in.begin(), in.end()-1, eps, MakeBackInsertFunctor(out)); - //switch (out.size()) - //{ - //case 0: - // out.push_back(in.front()); - // // no break - //case 1: - // out.push_back(in.back()); - // break; - //default: - // if (!are_points_equal(out.back(), in.back())) - // out.push_back(in.back()); - //} - - SimplifyDP(in.begin(), in.end(), eps, - AccumulateSkipSmallTrg(out, eps)); + SimplifyNearOptimal(20, in.begin(), in.end(), eps, + AccumulateSkipSmallTrg(out, eps)); ASSERT_GREATER ( out.size(), 1, () ); ASSERT ( are_points_equal(in.front(), out.front()), () );