-void Polygon::print_fig(ostream &os) {
- os << "2 2 0 1 0 7 50 -1 20 0.000 0 0 -1 0 0 " << _nb_vertices + 1 << endl;
- os << " ";
- for(int n = 0; n < _nb_vertices; n++) os << " " << int(_x[n]*10) << " " << int(_y[n]*10);
- os << " " << int(_x[0]*10) << " " << int(_y[0]*10);
- os << endl;
+void Polygon::print_fig(XFigTracer *tracer) {
+ tracer->draw_polygon(_nb_vertices, _x, _y);