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:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-02-07 16:39:15 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:20:41 +0300
commit2317f55b5a9460654f0916f6b85d7fa23837d3be (patch)
tree7e3e7b127dc3a79381938e14f2f22ef32e3cc694 /indexer/feature.hpp
parent0e5fd3b1fbc0af74ec4cc9ecdc5988010a35f48e (diff)
Edits migration.
Diffstat (limited to 'indexer/feature.hpp')
-rw-r--r--indexer/feature.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/feature.hpp b/indexer/feature.hpp
index 8559b15e98..ebd8ab8d5e 100644
--- a/indexer/feature.hpp
+++ b/indexer/feature.hpp
@@ -216,6 +216,7 @@ public:
ASSERT(m_bPointsParsed, ());
return m_points.size();
}
+
inline m2::PointD const & GetPoint(size_t i) const
{
ASSERT_LESS(i, m_points.size(), ());
@@ -235,6 +236,12 @@ public:
}
}
+ inline vector<m2::PointD> GetTriangesAsPoints(int scale) const
+ {
+ ParseTriangles(scale);
+ return {begin(m_triangles), end(m_triangles)};
+ }
+
template <typename TFunctor>
void ForEachTriangleEx(TFunctor && f, int scale) const
{