- fixed Tcl commands that use the overlap parameter to switch from fraction to percentage

- in Transform Tool mae sure that the buffer sub-tool parameters are better explained in tooltips
This commit is contained in:
Marius Stanciu
2019-12-30 22:04:39 +02:00
committed by Marius
parent f7eaf62606
commit 841e1f3eeb
12 changed files with 38 additions and 35 deletions

View File

@@ -55,7 +55,7 @@ class TclCommandCopperClear(TclCommand):
('name', 'Name of the source Geometry object. String.'),
('tooldia', 'Diameter of the tool to be used. Can be a comma separated list of diameters. No space is '
'allowed between tool diameters. E.g: correct: 0.5,1 / incorrect: 0.5, 1'),
('overlap', 'Fraction of the tool diameter to overlap cuts. Float number.'),
('overlap', 'Percentage of the tool diameter to overlap cuts. Float number, [0%, 99.9999%]'),
('margin', 'Bounding box margin. Float number.'),
('order', 'Can have the values: "no", "fwd" and "rev". String.'
'It is useful when there are multiple tools in tooldia parameter.'
@@ -106,9 +106,9 @@ class TclCommandCopperClear(TclCommand):
tooldia = self.app.defaults["tools_ncctools"]
if 'overlap' in args:
overlap = float(args['overlap'])
overlap = float(args['overlap']) / 100.0
else:
overlap = float(self.app.defaults["tools_nccoverlap"])
overlap = float(self.app.defaults["tools_nccoverlap"]) / 100.0
if 'order' in args:
order = args['order']