aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/include
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2021-02-17 18:58:11 +0100
committerjaseg <git-bigdata-wsl-arch@jaseg.de>2021-02-17 18:58:11 +0100
commitda9d7280d5d099c65f3e8d134a60b4778a5bcfb2 (patch)
tree935676348176d3a06032ff4ac4440081a59a17bd /svg-flatten/include
parentf9c5c00f513e6c6be70b033782976fd109eb4ac9 (diff)
downloadgerbolyze-da9d7280d5d099c65f3e8d134a60b4778a5bcfb2.tar.gz
gerbolyze-da9d7280d5d099c65f3e8d134a60b4778a5bcfb2.tar.bz2
gerbolyze-da9d7280d5d099c65f3e8d134a60b4778a5bcfb2.zip
svg-flatten: add curve flattening tolerance command line param
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 96a4103..dc06c89 100644
--- a/svg-flatten/include/gerbolyze.hpp
+++ b/svg-flatten/include/gerbolyze.hpp
@@ -139,6 +139,7 @@ namespace gerbolyze {
class RenderSettings {
public:
double m_minimum_feature_size_mm = 0.1;
+ double curve_tolerance_mm;
VectorizerSelectorizer &m_vec_sel;
};
@@ -174,7 +175,7 @@ namespace gerbolyze {
void export_svg_path(const RenderSettings &rset, const pugi::xml_node &node, ClipperLib::Paths &clip_path);
void setup_debug_output(std::string filename="");
void setup_viewport_clip();
- void load_clips();
+ void load_clips(const RenderSettings &rset);
void load_patterns();
bool _valid;