From c1e079474d4ae5a8fa6a3c415db9b0dd3a29e0d2 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Fri, 6 Sep 2019 00:40:07 +0300 Subject: [PATCH] - small changes --- camlib.py | 1 + flatcamTools/ToolNonCopperClear.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/camlib.py b/camlib.py index a2ab5ddc..b8e7fd87 100644 --- a/camlib.py +++ b/camlib.py @@ -907,6 +907,7 @@ class Geometry(object): # Index first and last points in paths def get_pts(o): return [o.coords[0], o.coords[-1]] + geoms = FlatCAMRTreeStorage() geoms.get_points = get_pts diff --git a/flatcamTools/ToolNonCopperClear.py b/flatcamTools/ToolNonCopperClear.py index 03896799..45a12a7a 100644 --- a/flatcamTools/ToolNonCopperClear.py +++ b/flatcamTools/ToolNonCopperClear.py @@ -1630,8 +1630,11 @@ class NonCopperClear(FlatCAMTool, Gerber): if area.geoms: if len(area.geoms) > 0: + # pol_nr = 0 for p in area.geoms: if p is not None: + # pol_nr += 1 + # log.debug("Polygons cleared: %d" % pol_nr) try: if isinstance(p, Polygon): if ncc_method == 'standard':