927 { |
927 { |
928 QVector<LDPolygon> polygons = rasterizePolygons(segments); |
928 QVector<LDPolygon> polygons = rasterizePolygons(segments); |
929 |
929 |
930 for (LDPolygon& poly : polygons) |
930 for (LDPolygon& poly : polygons) |
931 { |
931 { |
932 LDLine* line = LDSpawn<LDLine> (poly.vertices[0], poly.vertices[1]); |
932 LDLine* line = model.emplace<LDLine>(poly.vertices[0], poly.vertices[1]); |
933 line->setColor (poly.color); |
933 line->setColor (poly.color); |
934 model.addObject(line); |
|
935 } |
934 } |
936 } |
935 } |
937 |
936 |
938 QVector<LDPolygon> LDBezierCurve::rasterizePolygons(int segments) |
937 QVector<LDPolygon> LDBezierCurve::rasterizePolygons(int segments) |
939 { |
938 { |