aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-20 19:40:24 +0200
committerjaseg <git@jaseg.de>2022-06-20 19:40:24 +0200
commit0ecb612d59479f64b20dd08dee1496ed3a7d545a (patch)
treece5f53d7b9ff12b30f0087e1ebd68a27c059f957
parentd3204b1edeb234591d5c65fbec993f2c2d16209e (diff)
downloadgerbolyze-0ecb612d59479f64b20dd08dee1496ed3a7d545a.tar.gz
gerbolyze-0ecb612d59479f64b20dd08dee1496ed3a7d545a.tar.bz2
gerbolyze-0ecb612d59479f64b20dd08dee1496ed3a7d545a.zip
svg-flatten: remove debug prints
-rw-r--r--svg-flatten/src/out_gerber.cpp1
-rw-r--r--svg-flatten/src/svg_doc.cpp16
2 files changed, 9 insertions, 8 deletions
diff --git a/svg-flatten/src/out_gerber.cpp b/svg-flatten/src/out_gerber.cpp
index 14b6b32..f781649 100644
--- a/svg-flatten/src/out_gerber.cpp
+++ b/svg-flatten/src/out_gerber.cpp
@@ -144,6 +144,7 @@ SimpleGerberOutput &SimpleGerberOutput::operator<<(const FlashToken &tok) {
}
SimpleGerberOutput &SimpleGerberOutput::operator<<(const PatternToken &tok) {
+ m_aperture_set = true;
m_macro_aperture = true;
m_aperture_num += 1;
diff --git a/svg-flatten/src/svg_doc.cpp b/svg-flatten/src/svg_doc.cpp
index 019760b..1999876 100644
--- a/svg-flatten/src/svg_doc.cpp
+++ b/svg-flatten/src/svg_doc.cpp
@@ -376,9 +376,9 @@ void gerbolyze::SVGDocument::export_svg_path(RenderContext &ctx, const pugi::xml
}
if (stroke_color != GRB_PATTERN_FILL) {
- cerr << "Analyzing direct conversion of stroke" << endl;
- cerr << " stroke_closed.size() = " << stroke_closed.size() << endl;
- cerr << " stroke_open.size() = " << stroke_open.size() << endl;
+ // cerr << "Analyzing direct conversion of stroke" << endl;
+ // cerr << " stroke_closed.size() = " << stroke_closed.size() << endl;
+ // cerr << " stroke_open.size() = " << stroke_open.size() << endl;
ctx.sink() << (stroke_color == GRB_DARK ? GRB_POL_DARK : GRB_POL_CLEAR);
ClipperOffset offx;
@@ -416,12 +416,12 @@ void gerbolyze::SVGDocument::export_svg_path(RenderContext &ctx, const pugi::xml
/* Can gerber losslessly express this path? */
bool gerber_lossless = nothing_clipped && ends_can_be_mapped && joins_can_be_mapped;
- cerr << " nothing_clipped = " << nothing_clipped << endl;
- cerr << " ends_can_be_mapped = " << ends_can_be_mapped << endl;
- cerr << " joins_can_be_mapped = " << joins_can_be_mapped << endl;
+ // cerr << " nothing_clipped = " << nothing_clipped << endl;
+ // cerr << " ends_can_be_mapped = " << ends_can_be_mapped << endl;
+ // cerr << " joins_can_be_mapped = " << joins_can_be_mapped << endl;
/* Accept loss of precision in outline mode. */
if (ctx.settings().outline_mode || gerber_lossless ) {
- cerr << " -> converting directly" << endl;
+ // cerr << " -> converting directly" << endl;
ctx.sink() << ApertureToken(stroke_width);
for (auto &path : stroke_closed) {
if (path.empty()) {
@@ -434,7 +434,7 @@ void gerbolyze::SVGDocument::export_svg_path(RenderContext &ctx, const pugi::xml
ctx.sink() << stroke_open;
return;
}
- cerr << " -> NOT converting directly" << endl;
+ // cerr << " -> NOT converting directly" << endl;
/* else fall through to normal processing */
}