diff options
author | jaseg <git@jaseg.de> | 2022-06-20 19:37:33 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-06-20 19:37:33 +0200 |
commit | d3204b1edeb234591d5c65fbec993f2c2d16209e (patch) | |
tree | e342b6b2a69d2319c25f1685f877f07db5ba3296 /svg-flatten/include/gerbolyze.hpp | |
parent | 2fc5d1d929a69c5cd617907e9c9030ad395289ad (diff) | |
download | gerbolyze-d3204b1edeb234591d5c65fbec993f2c2d16209e.tar.gz gerbolyze-d3204b1edeb234591d5c65fbec993f2c2d16209e.tar.bz2 gerbolyze-d3204b1edeb234591d5c65fbec993f2c2d16209e.zip |
svg-flatten: Finish direct interpolation optimization
Diffstat (limited to 'svg-flatten/include/gerbolyze.hpp')
-rw-r--r-- | svg-flatten/include/gerbolyze.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/svg-flatten/include/gerbolyze.hpp b/svg-flatten/include/gerbolyze.hpp index b50f18c..a24236b 100644 --- a/svg-flatten/include/gerbolyze.hpp +++ b/svg-flatten/include/gerbolyze.hpp @@ -46,7 +46,9 @@ namespace gerbolyze { class ApertureToken { public: - ApertureToken(double size=0.0) : m_size(size) {} + ApertureToken() : m_has_aperture(false) {} + ApertureToken(double size) : m_has_aperture(true), m_size(size) {} + bool m_has_aperture = false; double m_size = 0.0; }; @@ -317,7 +319,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}, bool flip_polarity=false, bool outline_mode=false); + 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); @@ -336,8 +338,8 @@ namespace gerbolyze { d2p m_offset; double m_scale; bool m_flip_pol; - bool m_outline_mode; double m_current_aperture; + bool m_aperture_set; bool m_macro_aperture; unsigned int m_aperture_num; }; |