mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-03 10:32:40 +00:00
New methods in Slic3r::SVG C++ class
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define slic3r_SVG_hpp_
|
||||
|
||||
#include <myinit.h>
|
||||
#include "ExPolygon.hpp"
|
||||
#include "Line.hpp"
|
||||
#include "TriangleMesh.hpp"
|
||||
|
||||
@@ -9,15 +10,24 @@ namespace Slic3r {
|
||||
|
||||
class SVG
|
||||
{
|
||||
private:
|
||||
FILE* f;
|
||||
float coordinate(long c);
|
||||
public:
|
||||
bool arrows;
|
||||
std::string fill, stroke;
|
||||
|
||||
SVG(const char* filename);
|
||||
void AddLine(const Line &line);
|
||||
void AddLine(const IntersectionLine &line);
|
||||
void draw(const ExPolygon &expolygon);
|
||||
void draw(const Polygon &polygon);
|
||||
void draw(const Polyline &polyline);
|
||||
void Close();
|
||||
|
||||
private:
|
||||
std::string filename;
|
||||
FILE* f;
|
||||
|
||||
void path(const std::string &d, bool fill);
|
||||
std::string get_path_d(const MultiPoint &polygon) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user