| 97 | |
| 98 | template <int DEPTH_LEVELS> |
| 99 | void GetIntersection(FeatureType & f, FeatureIntersector<DEPTH_LEVELS> & fIsect) |
| 100 | { |
| 101 | // We need to cover feature for the best geometry, because it's indexed once for the |
| 102 | // first top level scale. Do reset current cached geometry first. |
| 103 | f.ResetGeometry(); |
| 104 | int const scale = FeatureType::BEST_GEOMETRY; |
| 105 | |
| 106 | f.ForEachPoint(fIsect, scale); |
| 107 | f.ForEachTriangle(fIsect, scale); |
| 108 | |
| 109 | CHECK(!(fIsect.m_trg.empty() && fIsect.m_polyline.empty()) && f.GetLimitRect(scale).IsValid(), (f.DebugString())); |
| 110 | } |
| 111 | |
| 112 | template <int DEPTH_LEVELS> |
| 113 | std::vector<int64_t> CoverIntersection(FeatureIntersector<DEPTH_LEVELS> const & fIsect, int cellDepth, |
no test coverage detected