src/layers/edittools.cpp

changeset 320
af6633412a6c
parent 319
9727e545b0bc
child 322
a39f454a3d7f
equal deleted inserted replaced
319:9727e545b0bc 320:af6633412a6c
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 }

mercurial