Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2011-01-06 22:56:36 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:09:18 +0300
commiteffddd5ed3a1080a0b3f1605d954bd0c914c9f91 (patch)
tree49c18ac30e4f0fd785e20ac41ccffd53153fe046 /indexer/scale_index_builder.hpp
parent29fad748ac0872c398802e3d9e4ae467f2093713 (diff)
- Geometry and Triangles simplification in features.
- Store Geometry and Triangles in different files of files-container for each scale range. - Make small epsilon for simplification. Remark: map_tests doesn't work
Diffstat (limited to 'indexer/scale_index_builder.hpp')
-rw-r--r--indexer/scale_index_builder.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indexer/scale_index_builder.hpp b/indexer/scale_index_builder.hpp
index 8d755fc077..dbaefc4840 100644
--- a/indexer/scale_index_builder.hpp
+++ b/indexer/scale_index_builder.hpp
@@ -75,7 +75,8 @@ public:
template <class TFeature>
bool FeatureShouldBeIndexed(TFeature const & f) const
{
- (void)f.GetLimitRect(); // dummy call to force TFeature::ParseGeometry
+ // Call this to force TFeature::ParseGeometry
+ f.GetLimitRect(m_ScaleRange.second);
uint32_t const minScale = feature::MinDrawableScaleForFeature(f);
return (m_ScaleRange.first <= minScale && minScale < m_ScaleRange.second);