void GetIntersection(FeatureType & f, FeatureIntersector<DEPTH_LEVELS> & fIsect) { // We need to cover feature for the best geometry, because it's indexed once for the // first top level scale. Do reset current cached geometry first. f.ResetGeometry(); int const scale = FeatureType::BEST_GEOMETRY; f.ForEachPoint(fIsect, scale); f.ForEachTriangle(fIsect, scale); CHECK(!(fIsect.m_trg.empty() && fIsect.m_polyline.empty()) && f.GetLimitRect(scale).IsValid(), (f.DebugString(scale))); }
string DebugPrint(FeatureType const & ft) { return ft.DebugString(FeatureType::BEST_GEOMETRY); }