From 9a6ab822f2ef388a07c4a85effbd1adc08618ea5 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 19 Oct 2020 12:26:43 +0200 Subject: gerbolyze: Add --exact option and fix copper layer processing --- gerbolyze | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gerbolyze') diff --git a/gerbolyze b/gerbolyze index e6c6d67..fad68b4 100755 --- a/gerbolyze +++ b/gerbolyze @@ -16,6 +16,7 @@ if __name__ == '__main__': vectorize_parser.add_argument('side', choices=['top', 'bottom'], help='Target board side') vectorize_parser.add_argument('--layer', '-l', choices=['silk', 'mask', 'copper'], default='silk', help='Target layer on given side') + vectorize_parser.add_argument('--exact', '-x', action='store_true', default=False, help='Do not subtract existing features on other layers from overlay') vectorize_parser.add_argument('source', help='Source gerber directory') vectorize_parser.add_argument('target', help='Target gerber directory') @@ -29,7 +30,7 @@ if __name__ == '__main__': args = parser.parse_args() if args.command == 'vectorize': - gerbolyze.process_gerbers(args.source, args.target, args.image, args.side, args.layer, args.debugdir) + gerbolyze.process_gerbers(args.source, args.target, args.image, args.side, args.layer, args.exact, args.debugdir) else: # command == render gerbolyze.render_preview(args.source, args.image, args.side, args.fab_resolution, args.oversampling) -- cgit