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

Function IsGoodOutlineForLevel

libs/indexer/scales.cpp:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool IsGoodOutlineForLevel(int level, Points const & poly)
87{
88 // Areas and closed lines have the same first and last points.
89 // Hence the minimum number of outline points is 4.
90 if (poly.size() < 4)
91 return false;
92
93 m2::RectD r;
94 feature::CalcRect(poly, r);
95
96 return IsGoodForLevel(level, r);
97}
98} // namespace scales

Callers 2

SimplifyContoursFunction · 0.85
operator()Method · 0.85

Calls 3

CalcRectFunction · 0.85
IsGoodForLevelFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected