aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/include/gerbolyze.hpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-01-31 22:11:34 +0100
committerjaseg <git@jaseg.de>2021-01-31 22:11:34 +0100
commita68e395cb622b9cb91e408b0846cc10126f8ddad (patch)
tree14c02a7eed139d1f750923f77350fd941fcfa025 /svg-flatten/include/gerbolyze.hpp
parent49a7c6df416b18516fca776614cb0aa0f483798f (diff)
downloadgerbolyze-a68e395cb622b9cb91e408b0846cc10126f8ddad.tar.gz
gerbolyze-a68e395cb622b9cb91e408b0846cc10126f8ddad.tar.bz2
gerbolyze-a68e395cb622b9cb91e408b0846cc10126f8ddad.zip
Advanced svg/gerber composition working
Diffstat (limited to 'svg-flatten/include/gerbolyze.hpp')
-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 1fe13ae..96a4103 100644
--- a/svg-flatten/include/gerbolyze.hpp
+++ b/svg-flatten/include/gerbolyze.hpp
@@ -213,7 +213,7 @@ namespace gerbolyze {
class SimpleGerberOutput : public StreamPolygonSink {
public:
- SimpleGerberOutput(std::ostream &out, bool only_polys=false, int digits_int=4, int digits_frac=6, 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});
virtual ~SimpleGerberOutput() {}
virtual SimpleGerberOutput &operator<<(const Polygon &poly);
virtual SimpleGerberOutput &operator<<(GerberPolarityToken pol);
@@ -227,6 +227,7 @@ namespace gerbolyze {
double m_height;
long long int m_gerber_scale;
d2p m_offset;
+ double m_scale;
};
class SimpleSVGOutput : public StreamPolygonSink {