32 static std::vector<WithId<PolygonElement>> getPolygonsAt( |
32 static std::vector<WithId<PolygonElement>> getPolygonsAt( |
33 const Model* model, |
33 const Model* model, |
34 GetPolygonsContext* context) |
34 GetPolygonsContext* context) |
35 { |
35 { |
36 std::vector<WithId<PolygonElement>> result; |
36 std::vector<WithId<PolygonElement>> result; |
37 for (int i = 0; i < model->size(); i += 1) |
37 for (std::size_t i = 0; i < model->size(); i += 1) |
38 { |
38 { |
39 const ModelElement& element = (*model)[i]; |
39 const ModelElement& element = (*model)[i]; |
40 const ModelId id = model->idAt(i); |
40 const ModelId id = model->idAt(i); |
41 std::visit<void>(overloaded{ |
41 std::visit<void>(overloaded{ |
42 [&](const Colored<LineSegment>& edge) { |
42 [&](const Colored<LineSegment>& edge) { |