diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2015-12-18 14:40:25 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2015-12-18 17:58:02 +0300 |
commit | 5fae32b028295fdf8eceab7299cda7e53f2a71f3 (patch) | |
tree | debc2297d5c6d51d5f0d4e44e8c67022f3a29530 /generator/feature_builder.cpp | |
parent | c3cab67c0b62efa7ba6845b15c66903bf3dd587e (diff) |
Clipping borders in World.mwm by water
Diffstat (limited to 'generator/feature_builder.cpp')
-rw-r--r-- | generator/feature_builder.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/generator/feature_builder.cpp b/generator/feature_builder.cpp index 6ceed06c04..1f6249127b 100644 --- a/generator/feature_builder.cpp +++ b/generator/feature_builder.cpp @@ -131,6 +131,13 @@ void FeatureBuilder1::AddPolygon(vector<m2::PointD> & poly) m_polygons.back().swap(poly); } +void FeatureBuilder1::ResetGeometry() +{ + m_polygons.clear(); + m_polygons.push_back(TPointSeq()); + m_limitRect.MakeEmpty(); +} + bool FeatureBuilder1::RemoveInvalidTypes() { if (!m_params.FinishAddingTypes()) |