diff options
author | bubnikv <bubnikv@gmail.com> | 2016-10-21 11:18:01 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-10-21 11:18:01 +0300 |
commit | 15d3e94a66f7be869a77171841fcfe1726f44c56 (patch) | |
tree | 2911e87352a61f41c415769c29e9179dd88aef51 /xs/src/libslic3r/ClipperUtils.cpp | |
parent | 59f3fed9f22f9bb50529e9f2c335feed07100702 (diff) |
Unified the creation of paths of debugging output files
pointing to a predefined output directory.
Diffstat (limited to 'xs/src/libslic3r/ClipperUtils.cpp')
-rw-r--r-- | xs/src/libslic3r/ClipperUtils.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xs/src/libslic3r/ClipperUtils.cpp b/xs/src/libslic3r/ClipperUtils.cpp index edcb97f4b..b97f7dfb2 100644 --- a/xs/src/libslic3r/ClipperUtils.cpp +++ b/xs/src/libslic3r/ClipperUtils.cpp @@ -332,10 +332,8 @@ offset2(const Slic3r::Polygons &polygons, ClipperLib::Paths* retval, const float coordf_t stroke_width = scale_(0.005); static int iRun = 0; ++ iRun; - char path[2048]; - sprintf(path, "out\\offset2-%d.svg", iRun); bool flipY = false; - SVG svg(path, bbox, scale_(1.), flipY); + SVG svg(debug_out_path("offset2-%d.svg", iRun), bbox, scale_(1.), flipY); for (Slic3r::Polygons::const_iterator it = polygons.begin(); it != polygons.end(); ++ it) svg.draw(it->lines(), "gray", stroke_width); #endif /* CLIPPER_UTILS_DEBUG */ |