diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2022-06-18 17:29:27 +0200 |
---|---|---|
committer | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2022-06-18 17:29:27 +0200 |
commit | 14e9d7fbc2a935ec9c2e6eb9d68e8d250f9614d4 (patch) | |
tree | 9f86768b8ffc04a39db9b614aa4cc11956dda29b /svg-flatten/src/main.cpp | |
parent | 1622e9c9435d263c3c275718947b1030ad9b6b48 (diff) | |
download | gerbolyze-14e9d7fbc2a935ec9c2e6eb9d68e8d250f9614d4.tar.gz gerbolyze-14e9d7fbc2a935ec9c2e6eb9d68e8d250f9614d4.tar.bz2 gerbolyze-14e9d7fbc2a935ec9c2e6eb9d68e8d250f9614d4.zip |
svg-flatten: add drill handling to outline mode
Diffstat (limited to 'svg-flatten/src/main.cpp')
-rw-r--r-- | svg-flatten/src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svg-flatten/src/main.cpp b/svg-flatten/src/main.cpp index 817ba67..188aa57 100644 --- a/svg-flatten/src/main.cpp +++ b/svg-flatten/src/main.cpp @@ -79,6 +79,9 @@ int main(int argc, char **argv) { {"curve_tolerance", {"-c", "--curve-tolerance"}, "Tolerance for curve flattening in mm. Default: 0.1mm.", 1}, + {"drill_test_polsby_popper_tolerance", {"--drill-test-tolerance"}, + "Tolerance for identifying circles as drills in outline mode", + 1}, {"no_header", {"--no-header"}, "Do not export output format header/footer, only export the primitives themselves", 0}, @@ -291,6 +294,7 @@ int main(int argc, char **argv) { double min_feature_size = args["min_feature_size"].as<double>(0.1); /* mm */ double curve_tolerance = args["curve_tolerance"].as<double>(0.1); /* mm */ + double drill_test_polsby_popper_tolerance = args["drill_test_polsby_popper_tolerance"].as<double>(0.1); /* mm */ string ending = ""; auto idx = in_f_name.rfind("."); @@ -423,6 +427,7 @@ int main(int argc, char **argv) { RenderSettings rset { min_feature_size, curve_tolerance, + drill_test_polsby_popper_tolerance, vec_sel, outline_mode, flip_svg_colors, |