diff options
author | jaseg <git@jaseg.de> | 2023-03-29 18:23:56 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-03-29 18:23:56 +0200 |
commit | eb7107a8c6025399ce7c41a3f0f4ae7d40861b32 (patch) | |
tree | 52853deaffa0f8579563e41e72ebb5f611ca817c /svg-flatten/src | |
parent | 454d587d795aef529c04d6c250219ed288f02228 (diff) | |
download | gerbolyze-eb7107a8c6025399ce7c41a3f0f4ae7d40861b32.tar.gz gerbolyze-eb7107a8c6025399ce7c41a3f0f4ae7d40861b32.tar.bz2 gerbolyze-eb7107a8c6025399ce7c41a3f0f4ae7d40861b32.zip |
svg-flatten: Fix incorrect polarity for outlined strokes
Diffstat (limited to 'svg-flatten/src')
-rw-r--r-- | svg-flatten/src/out_gerber.cpp | 1 | ||||
-rw-r--r-- | svg-flatten/src/svg_doc.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/svg-flatten/src/out_gerber.cpp b/svg-flatten/src/out_gerber.cpp index 4293d82..af84876 100644 --- a/svg-flatten/src/out_gerber.cpp +++ b/svg-flatten/src/out_gerber.cpp @@ -63,7 +63,6 @@ void SimpleGerberOutput::header_impl(d2p origin, d2p size) { } SimpleGerberOutput& SimpleGerberOutput::operator<<(const ApertureToken &ap) { - cerr << ap.m_size << " / " << m_current_aperture << endl; m_aperture_set = ap.m_has_aperture; if (!m_macro_aperture && ap.m_size == m_current_aperture) { diff --git a/svg-flatten/src/svg_doc.cpp b/svg-flatten/src/svg_doc.cpp index 6cb6138..47e73ee 100644 --- a/svg-flatten/src/svg_doc.cpp +++ b/svg-flatten/src/svg_doc.cpp @@ -530,9 +530,9 @@ void gerbolyze::SVGDocument::export_svg_path(RenderContext &ctx, const pugi::xml Paths s_polys; dehole_polytree(ptree, s_polys); ctx.mat().doc2phys_clipper(s_polys); - /* color has alredy been pushed above. */ + /* color has already been pushed above. */ //cerr << " sinking " << s_polys.size() << " paths" << endl; - ctx.sink() << ApertureToken() << s_polys; + ctx.sink() << (stroke_color == GRB_DARK ? GRB_POL_DARK : GRB_POL_CLEAR) << ApertureToken() << s_polys; } } } |