diff options
author | jaseg <git@jaseg.de> | 2022-06-20 10:24:26 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-06-20 10:24:26 +0200 |
commit | d09cf6ef3b6ea82f7ff67719527cd563569e0893 (patch) | |
tree | 4175218f4fdd6a1a36c8fd835c87639353a3c1c5 /svg-flatten/src/main.cpp | |
parent | f58cca0ba66e66e924caf96545a348584d4f48ee (diff) | |
download | gerbolyze-d09cf6ef3b6ea82f7ff67719527cd563569e0893.tar.gz gerbolyze-d09cf6ef3b6ea82f7ff67719527cd563569e0893.tar.bz2 gerbolyze-d09cf6ef3b6ea82f7ff67719527cd563569e0893.zip |
svg-flatten: Add 'complete pattern tiles only' switch
This is not part of the SVG spec, but it is useful for generating proto
boards using SVG patterns.
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 188aa57..35fcbfb 100644 --- a/svg-flatten/src/main.cpp +++ b/svg-flatten/src/main.cpp @@ -73,6 +73,9 @@ int main(int argc, char **argv) { {"flip_svg_color_interpretation", {"-i", "--svg-white-is-gerber-dark"}, "Flip polarity of SVG color interpretation. This affects only SVG primitives like paths and NOT embedded bitmaps. With -i: white -> silk there/\"dark\" gerber primitive.", 0}, + {"pattern_complete_tiles_only", {"--pattern-complete-tiles-only"}, + "Break SVG spec by only rendering complete pattern tiles, i.e. pattern tiles that entirely fit the target area, instead of performing clipping.", + 0}, {"min_feature_size", {"-d", "--trace-space"}, "Minimum feature size of elements in vectorized graphics (trace/space) in mm. Default: 0.1mm.", 1}, @@ -423,6 +426,7 @@ int main(int argc, char **argv) { VectorizerSelectorizer vec_sel(vectorizer, args["vectorizer_map"] ? args["vectorizer_map"].as<string>() : ""); bool flip_svg_colors = args["flip_svg_color_interpretation"]; + bool pattern_complete_tiles_only = args["pattern_complete_tiles_only"]; RenderSettings rset { min_feature_size, @@ -431,6 +435,7 @@ int main(int argc, char **argv) { vec_sel, outline_mode, flip_svg_colors, + pattern_complete_tiles_only, }; SVGDocument doc; |