14 |
14 |
15 for (Vertex const& vrt : points3d) |
15 for (Vertex const& vrt : points3d) |
16 points << renderer()->coordconv3_2 (vrt); |
16 points << renderer()->coordconv3_2 (vrt); |
17 |
17 |
18 painter.setPen (renderer()->textPen()); |
18 painter.setPen (renderer()->textPen()); |
19 assert (points.size() == points3d.size()); |
|
20 |
19 |
21 for (int i = 0; i < points.size() - 1; ++i) |
20 for (int i = 0; i < points.size() - 1; ++i) |
22 { |
21 { |
23 painter.drawLine (QLineF (points[i], points[i + 1])); |
22 painter.drawLine (QLineF (points[i], points[i + 1])); |
24 drawLength (painter, points3d[i], points3d[i + 1], points[i], points[i + 1]); |
23 drawLength (painter, points3d[i], points3d[i + 1], points[i], points[i + 1]); |