Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2016-10-21 11:18:01 +0300
committerbubnikv <bubnikv@gmail.com>2016-10-21 11:18:01 +0300
commit15d3e94a66f7be869a77171841fcfe1726f44c56 (patch)
tree2911e87352a61f41c415769c29e9179dd88aef51 /xs/src/libslic3r/Geometry.cpp
parent59f3fed9f22f9bb50529e9f2c335feed07100702 (diff)
Unified the creation of paths of debugging output files
pointing to a predefined output directory.
Diffstat (limited to 'xs/src/libslic3r/Geometry.cpp')
-rw-r--r--xs/src/libslic3r/Geometry.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/xs/src/libslic3r/Geometry.cpp b/xs/src/libslic3r/Geometry.cpp
index cdf913a27..e61f83355 100644
--- a/xs/src/libslic3r/Geometry.cpp
+++ b/xs/src/libslic3r/Geometry.cpp
@@ -838,12 +838,8 @@ MedialAxis::build(ThickPolylines* polylines)
#ifdef SLIC3R_DEBUG
{
- char path[2048];
static int iRun = 0;
- sprintf(path, "out/MedialAxis-%d.svg", iRun ++);
- dump_voronoi_to_svg(this->lines, this->vd, polylines, path);
-
-
+ dump_voronoi_to_svg(this->lines, this->vd, polylines, debug_out_path("MedialAxis-%d.svg", iRun ++).c_str());
printf("Thick lines: ");
for (ThickPolylines::const_iterator it = polylines->begin(); it != polylines->end(); ++ it) {
ThickLines lines = it->thicklines();