#include "SVG.hpp" namespace Slic3r { SVG::SVG(const char* filename) { this->f = fopen(filename, "w"); fprintf(this->f, "\n" "\n" "\n" " \n" " \n" " \n" ); } void SVG::AddLine(const Line &line) { fprintf(this->f, " \n", (float)unscale(line.a.x)*10, (float)unscale(line.a.y)*10, (float)unscale(line.b.x)*10, (float)unscale(line.b.y)*10 ); } void SVG::Close() { fprintf(this->f, "\n"); fclose(this->f); } }