mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-03 10:32:40 +00:00
Added several drawing methods to Slic3r::SVG
This commit is contained in:
@@ -15,11 +15,12 @@ class SVG
|
||||
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 draw(const Line &line, std::string stroke = "black");
|
||||
void draw(const ExPolygon &expolygon, std::string fill = "grey");
|
||||
void draw(const Polygon &polygon, std::string fill = "grey");
|
||||
void draw(const Polyline &polyline, std::string stroke = "black");
|
||||
void draw(const Point &point, std::string fill = "black", unsigned int radius = 3);
|
||||
void Close();
|
||||
|
||||
private:
|
||||
@@ -27,7 +28,7 @@ class SVG
|
||||
FILE* f;
|
||||
|
||||
void path(const std::string &d, bool fill);
|
||||
std::string get_path_d(const MultiPoint &polygon) const;
|
||||
std::string get_path_d(const MultiPoint &mp, bool closed = false) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user