From 8b88223c6120a4ae06971cbe4809d8a7670e7721 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Fri, 9 Apr 2021 00:07:05 +0200 Subject: [PATCH] fix typo in hatchfill --- extensions/fablabchemnitz/hatchfill.inx | 2 +- extensions/fablabchemnitz/ofsplot.inx | 8 ++++---- extensions/fablabchemnitz/ofsplot.py | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/extensions/fablabchemnitz/hatchfill.inx b/extensions/fablabchemnitz/hatchfill.inx index ffe1d2ed..ade13892 100644 --- a/extensions/fablabchemnitz/hatchfill.inx +++ b/extensions/fablabchemnitz/hatchfill.inx @@ -1,6 +1,6 @@ - _Hatch Fill + Hatch Fill fablabchemnitz.de.hatchfill diff --git a/extensions/fablabchemnitz/ofsplot.inx b/extensions/fablabchemnitz/ofsplot.inx index 0e9c788c..4f1b23aa 100644 --- a/extensions/fablabchemnitz/ofsplot.inx +++ b/extensions/fablabchemnitz/ofsplot.inx @@ -2,11 +2,11 @@ Ofsplot (Offset Paths) fablabchemnitz.de.ofsplot - 10 - 0.8 - 0.8 + 1 + 1.0000 + 1.0000 false - 0.8 + 0.0000 3.0 1024.0 diff --git a/extensions/fablabchemnitz/ofsplot.py b/extensions/fablabchemnitz/ofsplot.py index 4619b8d3..2581addb 100644 --- a/extensions/fablabchemnitz/ofsplot.py +++ b/extensions/fablabchemnitz/ofsplot.py @@ -9,11 +9,11 @@ import pyclipper class ofsplot(inkex.Effect): def __init__(self): inkex.Effect.__init__(self) - self.arg_parser.add_argument("--count", type=int, default=10, help="Number of offset paths") - self.arg_parser.add_argument("--offset", type=float, default=2.0, help="Offset amount") - self.arg_parser.add_argument("--init_offset", type=float, default=2.0, help="Initial Offset Amount") + self.arg_parser.add_argument("--offset_count", type=int, default=1, help="Number of offset paths") + self.arg_parser.add_argument("--offset", type=float, default=1.000, help="Offset amount") + self.arg_parser.add_argument("--init_offset", type=float, default=0.000, help="Initial Offset Amount") self.arg_parser.add_argument("--copy_org", type=inkex.Boolean, default=True, help="copy original path") - self.arg_parser.add_argument("--offset_increase", type=float, default=2.0, help="Offset increase between iterations") + self.arg_parser.add_argument("--offset_increase", type=float, default=0.000, help="Offset increase between iterations") self.arg_parser.add_argument("--jointype", default="2", help="Join type") self.arg_parser.add_argument("--miterlimit", type=float, default=3.0, help="Miter limit") self.arg_parser.add_argument("--clipperscale", type=float, default=1024.0, help="Scaling factor") @@ -53,7 +53,7 @@ class ofsplot(inkex.Effect): # calculate offset paths for different offset amounts offset_list = [] offset_list.append(self.options.init_offset) - for i in range(0,self.options.count+1): + for i in range(0, self.options.offset_count): ofs_inc = +math.pow(float(i)*self.options.offset_increase,2) if self.options.offset_increase <0: ofs_inc = -ofs_inc