Просмотр исходного кода

- update the Tcl Command isolate to be able to isolate exteriors, interiors besides the full isolation, using the iso_type parameter

Marius Stanciu 6 лет назад
Родитель
Сommit
21ca024324
2 измененных файлов с 6 добавлено и 2 удалено
  1. 1 0
      README.md
  2. 5 2
      tclCommands/TclCommandIsolate.py

+ 1 - 0
README.md

@@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing.
 
 
 - refactored FlatCAMGeometry.mtool_gen_cncjob() method
 - refactored FlatCAMGeometry.mtool_gen_cncjob() method
 - fixed the TclCommandCncjob to work for multigeometry Geometry objects; still I had to fix the list of tools parameter, right now I am setting it to an empty list
 - fixed the TclCommandCncjob to work for multigeometry Geometry objects; still I had to fix the list of tools parameter, right now I am setting it to an empty list
+- update the Tcl Command isolate to be able to isolate exteriors, interiors besides the full isolation, using the iso_type parameter
 
 
 14.09.2019
 14.09.2019
 
 

+ 5 - 2
tclCommands/TclCommandIsolate.py

@@ -29,7 +29,8 @@ class TclCommandIsolate(TclCommandSignaled):
         ('overlap', float),
         ('overlap', float),
         ('combine', int),
         ('combine', int),
         ('outname', str),
         ('outname', str),
-        ('follow', str)
+        ('follow', str),
+        ('iso_type', int)
 
 
     ])
     ])
 
 
@@ -46,7 +47,9 @@ class TclCommandIsolate(TclCommandSignaled):
             ('overlap', 'Fraction of tool diameter to overlap passes.'),
             ('overlap', 'Fraction of tool diameter to overlap passes.'),
             ('combine', 'Combine all passes into one geometry.'),
             ('combine', 'Combine all passes into one geometry.'),
             ('outname', 'Name of the resulting Geometry object.'),
             ('outname', 'Name of the resulting Geometry object.'),
-            ('follow', 'Create a Geometry that follows the Gerber path.')
+            ('follow', 'Create a Geometry that follows the Gerber path.'),
+            ('iso_type', 'A value of 0 will isolate exteriors, a value of 1 will isolate interiors '
+                         'and a value of 2 will do full isolation.')
         ]),
         ]),
         'examples': []
         'examples': []
     }
     }