aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/include
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2021-03-19 20:32:13 +0100
committerjaseg <code@jaseg.net>2021-04-05 13:57:40 +0200
commit3288fb8345c07b4ca0deff82805d330f7d80bee7 (patch)
treeae8aed57df1457797ae4b31cce555191ee7d0fbc /svg-flatten/include
parent0be9f4b3bae743fe3ed9359daf54b54aa5f31f88 (diff)
downloadgerbolyze-3288fb8345c07b4ca0deff82805d330f7d80bee7.tar.gz
gerbolyze-3288fb8345c07b4ca0deff82805d330f7d80bee7.tar.bz2
gerbolyze-3288fb8345c07b4ca0deff82805d330f7d80bee7.zip
Add -f/--flip-gerber-polarity option
Diffstat (limited to 'svg-flatten/include')
-rw-r--r--svg-flatten/include/gerbolyze.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/svg-flatten/include/gerbolyze.hpp b/svg-flatten/include/gerbolyze.hpp
index dc06c89..aea8748 100644
--- a/svg-flatten/include/gerbolyze.hpp
+++ b/svg-flatten/include/gerbolyze.hpp
@@ -214,7 +214,7 @@ namespace gerbolyze {
class SimpleGerberOutput : public StreamPolygonSink {
public:
- SimpleGerberOutput(std::ostream &out, bool only_polys=false, int digits_int=4, int digits_frac=6, double scale=1.0, d2p offset={0,0});
+ SimpleGerberOutput(std::ostream &out, bool only_polys=false, int digits_int=4, int digits_frac=6, double scale=1.0, d2p offset={0,0}, bool flip_polarity=false);
virtual ~SimpleGerberOutput() {}
virtual SimpleGerberOutput &operator<<(const Polygon &poly);
virtual SimpleGerberOutput &operator<<(GerberPolarityToken pol);
@@ -229,6 +229,7 @@ namespace gerbolyze {
long long int m_gerber_scale;
d2p m_offset;
double m_scale;
+ bool m_flip_pol;
};
class SimpleSVGOutput : public StreamPolygonSink {