diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2020-06-16 14:13:51 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2020-06-16 14:15:48 +0300 |
commit | b101a8e26601c49bfa3a8c62baca9e6810f474b1 (patch) | |
tree | 64a5ab25927baf1a3110c33d505822801b587f34 /src/libslic3r/SVG.cpp | |
parent | af5c3583e8b844ffa164ef5679bb9c696362fb00 (diff) |
Fixes of the offset curves from Voronoi diagram.
The offset curve extractor is already quite usable,
though singular cases are still not covered yet
when the offset curve intersects or nearly intersects
a Voronoi vertex.
Removal of the PRINTF_ZU "%zu" Visual Studio printf compatibility macro.
Fixes of a contours self intersection test for collinear segments.
SVG exporter now exports white background, so that the GNOME Eye viewer is usable.
Diffstat (limited to 'src/libslic3r/SVG.cpp')
-rw-r--r-- | src/libslic3r/SVG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libslic3r/SVG.cpp b/src/libslic3r/SVG.cpp index 6e4b973ea..1c1c906c9 100644 --- a/src/libslic3r/SVG.cpp +++ b/src/libslic3r/SVG.cpp @@ -21,6 +21,7 @@ bool SVG::open(const char* afilename) " <polyline fill=\"darkblue\" points=\"0,0 10,5 0,10 1,5\" />\n" " </marker>\n" ); + fprintf(this->f, "<rect fill='white' stroke='none' x='0' y='0' width='%f' height='%f'/>\n", 2000.f, 2000.f); return true; } @@ -42,6 +43,7 @@ bool SVG::open(const char* afilename, const BoundingBox &bbox, const coord_t bbo " <polyline fill=\"darkblue\" points=\"0,0 10,5 0,10 1,5\" />\n" " </marker>\n", h, w); + fprintf(this->f, "<rect fill='white' stroke='none' x='0' y='0' width='%f' height='%f'/>\n", w, h); return true; } |