mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
New methods in Slic3r::SVG C++ class
This commit is contained in:
parent
f0de57cbe4
commit
713fcb5e8e
2 changed files with 68 additions and 12 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue