mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 19:28:14 -06:00
Unified the creation of paths of debugging output files
pointing to a predefined output directory.
This commit is contained in:
parent
59f3fed9f2
commit
15d3e94a66
13 changed files with 42 additions and 74 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue