src/linetypes/modelobject.cpp

changeset 1397
5d5c11af0268
parent 1391
5fa4bf1fc781
child 1398
1c70d3447d20
equal deleted inserted replaced
1396:3442a59ab05c 1397:5d5c11af0268
462 QVector<LDPolygon> polygons = rasterizePolygons(segments); 462 QVector<LDPolygon> polygons = rasterizePolygons(segments);
463 463
464 for (LDPolygon& poly : polygons) 464 for (LDPolygon& poly : polygons)
465 { 465 {
466 LDEdgeLine* line = model.emplace<LDEdgeLine>(poly.vertices[0], poly.vertices[1]); 466 LDEdgeLine* line = model.emplace<LDEdgeLine>(poly.vertices[0], poly.vertices[1]);
467 line->setColor (poly.color); 467 line->setColor(LDColor {poly.color});
468 } 468 }
469 } 469 }
470 470
471 QVector<LDPolygon> LDBezierCurve::rasterizePolygons(int segments) 471 QVector<LDPolygon> LDBezierCurve::rasterizePolygons(int segments)
472 { 472 {

mercurial