src/polygoncache.cpp

changeset 250
2837b549e616
parent 232
8efa3a33172e
child 264
76a025db4948
equal deleted inserted replaced
249:37d3c819cafa 250:2837b549e616
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) {

mercurial