| 37 | } |
| 38 | |
| 39 | bool PolytreeContainsPoint(const PolyPath64& pp, const Point64 pt) |
| 40 | { |
| 41 | int counter = 0; |
| 42 | for (const auto& child : pp) |
| 43 | PolyPathContainsPoint(*child, pt, counter); |
| 44 | EXPECT_GE(counter, 0); //ie 'pt' can't be inside more holes than outers |
| 45 | return counter != 0; |
| 46 | } |
| 47 | |
| 48 | void GetPolyPathArea(const PolyPath64& pp, double& area) |
| 49 | { |
no test coverage detected