Extended the SVG exporting class with export_expolygons()
calculating the contour bounds internally.
This commit is contained in:
parent
aad3d4107f
commit
b42c5d6dfa
1 changed files with 5 additions and 1 deletions
|
@ -12,7 +12,7 @@ namespace Slic3r {
|
|||
|
||||
class SVG
|
||||
{
|
||||
public:
|
||||
public:
|
||||
bool arrows;
|
||||
std::string fill, stroke;
|
||||
Point origin;
|
||||
|
@ -89,6 +89,10 @@ public:
|
|||
static void export_expolygons(const char *path, const BoundingBox &bbox, const Slic3r::ExPolygons &expolygons, std::string stroke_outer = "black", std::string stroke_holes = "blue", coordf_t stroke_width = 0);
|
||||
static void export_expolygons(const std::string &path, const BoundingBox &bbox, const Slic3r::ExPolygons &expolygons, std::string stroke_outer = "black", std::string stroke_holes = "blue", coordf_t stroke_width = 0)
|
||||
{ export_expolygons(path.c_str(), bbox, expolygons, stroke_outer, stroke_holes, stroke_width); }
|
||||
static void export_expolygons(const char *path, const Slic3r::ExPolygons &expolygons, std::string stroke_outer = "black", std::string stroke_holes = "blue", coordf_t stroke_width = 0)
|
||||
{ export_expolygons(path, get_extents(expolygons), expolygons, stroke_outer, stroke_holes, stroke_width); }
|
||||
static void export_expolygons(const std::string &path, const Slic3r::ExPolygons &expolygons, std::string stroke_outer = "black", std::string stroke_holes = "blue", coordf_t stroke_width = 0)
|
||||
{ export_expolygons(path.c_str(), get_extents(expolygons), expolygons, stroke_outer, stroke_holes, stroke_width); }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue