212 painter.drawPolygon (QPolygonF (poly)); |
212 painter.drawPolygon (QPolygonF (poly)); |
213 |
213 |
214 // Draw vertex blips |
214 // Draw vertex blips |
215 for (int i = 0; i < poly3d.size(); ++i) |
215 for (int i = 0; i < poly3d.size(); ++i) |
216 { |
216 { |
217 QPoint& blip = poly[i]; |
217 renderer()->drawBlip (painter, poly[i]); |
218 painter.setPen (renderer()->linePen()); |
218 renderer()->drawBlipCoordinates (painter, poly3d[i], poly[i]); |
219 renderer()->drawBlip (painter, blip); |
|
220 |
|
221 // Draw their coordinates |
|
222 painter.setPen (renderer()->textPen()); |
|
223 painter.drawText (blip.x(), blip.y() - 8, poly3d[i].toString (true)); |
|
224 } |
219 } |
225 |
220 |
226 // Draw line lenghts and angle info if appropriate |
221 // Draw line lenghts and angle info if appropriate |
227 if (poly3d.size() >= 2 and (withlengths or withangles)) |
222 if (poly3d.size() >= 2 and (withlengths or withangles)) |
228 { |
223 { |