MCPcopy Create free account
hub / github.com/comaps/comaps / GetIntersection

Function GetIntersection

libs/indexer/feature_covering.cpp:99–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98template <int DEPTH_LEVELS>
99void 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
112template <int DEPTH_LEVELS>
113std::vector<int64_t> CoverIntersection(FeatureIntersector<DEPTH_LEVELS> const & fIsect, int cellDepth,

Callers 1

CoverFeatureFunction · 0.70

Calls 7

ResetGeometryMethod · 0.45
ForEachPointMethod · 0.45
ForEachTriangleMethod · 0.45
emptyMethod · 0.45
IsValidMethod · 0.45
GetLimitRectMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected