src/ldObject.cpp

changeset 1080
6dac2d52bd9a
parent 1079
67c6e5d32e68
child 1081
47cde4087cc5
equal deleted inserted replaced
1079:67c6e5d32e68 1080:6dac2d52bd9a
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 {

mercurial