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/ExPolygon.cpp
parent59f3fed9f22f9bb50529e9f2c335feed07100702 (diff)
Unified the creation of paths of debugging output files
pointing to a predefined output directory.
Diffstat (limited to 'xs/src/libslic3r/ExPolygon.cpp')
-rw-r--r--xs/src/libslic3r/ExPolygon.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/xs/src/libslic3r/ExPolygon.cpp b/xs/src/libslic3r/ExPolygon.cpp
index a9e67b241..0c8ce1c3a 100644
--- a/xs/src/libslic3r/ExPolygon.cpp
+++ b/xs/src/libslic3r/ExPolygon.cpp
@@ -122,7 +122,7 @@ ExPolygon::contains(const Polylines &polylines) const
#if 0
BoundingBox bbox = get_extents(polylines);
bbox.merge(get_extents(*this));
- SVG svg("out\\ExPolygon_contains.svg", bbox);
+ SVG svg(debug_out_path("ExPolygon_contains.svg"), bbox);
svg.draw(*this);
svg.draw_outline(*this);
svg.draw(polylines, "blue");
@@ -169,9 +169,7 @@ ExPolygon::overlaps(const ExPolygon &other) const
BoundingBox bbox = get_extents(other);
bbox.merge(get_extents(*this));
static int iRun = 0;
- char path[2048];
- sprintf(path, "out\\ExPolygon_overlaps-%d.svg", iRun ++);
- SVG svg(path, bbox);
+ SVG svg(debug_out_path("ExPolygon_overlaps-%d.svg", iRun ++), bbox);
svg.draw(*this);
svg.draw_outline(*this);
svg.draw_outline(other, "blue");