438 result.push_back(AppendToModel{edge(this->polygon[0], this->polygon[1])}); |
438 result.push_back(AppendToModel{edge(this->polygon[0], this->polygon[1])}); |
439 } |
439 } |
440 else if (this->numpoints > 2) { |
440 else if (this->numpoints > 2) { |
441 for (const PlainPolygonElement& poly : polygonize( |
441 for (const PlainPolygonElement& poly : polygonize( |
442 this->polygon.begin(), |
442 this->polygon.begin(), |
443 this->polygon.begin() + static_cast<long>(this->numpoints), |
443 this->polygon.begin() + static_cast<long>(this->numpoints)) |
444 this->gridMatrix) |
|
445 ) { |
444 ) { |
446 result.push_back(AppendToModel{ |
445 result.push_back(AppendToModel{ |
447 .newElement = elementFromPolygonAndColor(poly, MAIN_COLOR), |
446 .newElement = elementFromPolygonAndColor(poly, MAIN_COLOR), |
448 }); |
447 }); |
449 } |
448 } |