From da9d7280d5d099c65f3e8d134a60b4778a5bcfb2 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 17 Feb 2021 18:58:11 +0100 Subject: svg-flatten: add curve flattening tolerance command line param --- svg-flatten/include/gerbolyze.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'svg-flatten/include') 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; -- cgit