| 70 | } |
| 71 | |
| 72 | inline Path64 MakeRandomPoly(int width, int height, unsigned vertCnt) |
| 73 | { |
| 74 | Path64 result; |
| 75 | result.reserve(vertCnt); |
| 76 | for (unsigned i = 0; i < vertCnt; ++i) |
| 77 | result.push_back(Point64(rand() % width, rand() % height)); |
| 78 | return result; |
| 79 | } |
| 80 | |
| 81 | void DoBenchmark(int edge_cnt_start, int edge_cnt_end, |
| 82 | int increment, bool test_polytree) |