29 QVector<QPointF> points; |
29 QVector<QPointF> points; |
30 QList<Vertex> points3d = m_drawedVerts; |
30 QList<Vertex> points3d = m_drawedVerts; |
31 points3d << renderer()->position3D(); |
31 points3d << renderer()->position3D(); |
32 |
32 |
33 for (Vertex const& vrt : points3d) |
33 for (Vertex const& vrt : points3d) |
34 points << renderer()->convert3dTo2d (vrt); |
34 points << renderer()->currentCamera().convert3dTo2d(vrt); |
35 |
35 |
36 painter.setPen (renderer()->textPen()); |
36 painter.setPen (renderer()->textPen()); |
37 |
37 |
38 if (countof(points) == countof(points3d)) |
38 if (countof(points) == countof(points3d)) |
39 { |
39 { |