| 133 | } |
| 134 | |
| 135 | void FeatureBuilder::AddPolygon(PointSeq && poly) |
| 136 | { |
| 137 | // check for closing |
| 138 | if (poly.size() < 3) |
| 139 | return; |
| 140 | |
| 141 | if (poly.front() != poly.back()) |
| 142 | poly.push_back(poly.front()); |
| 143 | |
| 144 | CalcRect(poly, m_limitRect); |
| 145 | |
| 146 | m_polygons.push_back(std::move(poly)); |
| 147 | } |
| 148 | |
| 149 | void FeatureBuilder::ResetGeometry() |
| 150 | { |