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 { |