Procházet zdrojové kódy

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

Marius Stanciu před 6 roky
rodič
revize
21ca024324
2 změnil soubory, kde provedl 6 přidání a 2 odebrání
  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
 - 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
 

+ 5 - 2
tclCommands/TclCommandIsolate.py

@@ -29,7 +29,8 @@ class TclCommandIsolate(TclCommandSignaled):
         ('overlap', float),
         ('combine', int),
         ('outname', str),
-        ('follow', str)
+        ('follow', str),
+        ('iso_type', int)
 
     ])
 
@@ -46,7 +47,9 @@ class TclCommandIsolate(TclCommandSignaled):
             ('overlap', 'Fraction of tool diameter to overlap passes.'),
             ('combine', 'Combine all passes into one geometry.'),
             ('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': []
     }