aboutsummaryrefslogtreecommitdiff
path: root/gerbolyze/__init__.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-20 18:30:34 +0200
committerjaseg <git@jaseg.de>2022-06-20 18:30:34 +0200
commite4a0c1ba4a16c0e0f7c1013afd924ecb41b41f05 (patch)
tree5de4c8e20238b2c1a8c527cc62441315031bcd6f /gerbolyze/__init__.py
parent9e9cc2bc019f0e67720ad5da16315e7cd6781e78 (diff)
downloadgerbolyze-e4a0c1ba4a16c0e0f7c1013afd924ecb41b41f05.tar.gz
gerbolyze-e4a0c1ba4a16c0e0f7c1013afd924ecb41b41f05.tar.bz2
gerbolyze-e4a0c1ba4a16c0e0f7c1013afd924ecb41b41f05.zip
Fix outline mode clip & flash handling
Diffstat (limited to 'gerbolyze/__init__.py')
-rwxr-xr-xgerbolyze/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gerbolyze/__init__.py b/gerbolyze/__init__.py
index 0ba7b02..3c624bb 100755
--- a/gerbolyze/__init__.py
+++ b/gerbolyze/__init__.py
@@ -213,8 +213,10 @@ def empty_template(output_svg, size, force, copper_layers, no_default_layers, la
@click.option('--vectorizer-map', help='passed through to svg-flatten')
@click.option('--exclude-groups', help='passed through to svg-flatten')
@click.option('--pattern-complete-tiles-only', is_flag=True, help='passed through to svg-flatten')
+@click.option('--use-apertures-for-patterns', is_flag=True, help='passed through to svg-flatten')
def convert(input_svg, output_gerbers, is_zip, dilate, curve_tolerance, no_subtract, subtract, trace_space, vectorizer,
- vectorizer_map, exclude_groups, separate_drill, naming_scheme, pattern_complete_tiles_only):
+ vectorizer_map, exclude_groups, separate_drill, naming_scheme,
+ pattern_complete_tiles_only, use_apertures_for_patterns):
''' Convert SVG file directly to gerbers.
Unlike `gerbolyze paste`, this does not add the SVG's contents to existing gerbers. It allows you to directly create
@@ -244,6 +246,7 @@ def convert(input_svg, output_gerbers, is_zip, dilate, curve_tolerance, no_subtr
trace_space=trace_space, vectorizer=vectorizer, vectorizer_map=vectorizer_map,
exclude_groups=exclude_groups, curve_tolerance=curve_tolerance, only_groups=group_id,
pattern_complete_tiles_only=pattern_complete_tiles_only,
+ use_apertures_for_patterns=(use_apertures_for_patterns and use not in ('outline', 'drill')),
outline_mode=(use == 'outline' or use == 'drill'))
grb.original_path = Path()