- NCC Plugin: updates to fix a bug when doing copper clearing with Rest option
This commit is contained in:
@@ -7,6 +7,10 @@ CHANGELOG for FlatCAM Evo beta
|
|||||||
|
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
|
29.06.2023
|
||||||
|
|
||||||
|
- NCC Plugin: updates to fix a bug when doing copper clearing with Rest option
|
||||||
|
|
||||||
19.06.2023
|
19.06.2023
|
||||||
|
|
||||||
- added a new signal allowing printing messages in statusbar without polluting the Tcl Shell; to be used in the future for low-ranking messages
|
- added a new signal allowing printing messages in statusbar without polluting the Tcl Shell; to be used in the future for low-ranking messages
|
||||||
|
|||||||
@@ -2776,7 +2776,12 @@ class NonCopperClear(AppTool, Gerber):
|
|||||||
# except Exception as e:
|
# except Exception as e:
|
||||||
# self.app.log.error("Creating new area failed due of: %s" % str(e))
|
# self.app.log.error("Creating new area failed due of: %s" % str(e))
|
||||||
|
|
||||||
new_area = MultiPolygon([line.buffer(tool / 2) for line in cleared_geo])
|
if not cleared_geo:
|
||||||
|
break
|
||||||
|
buffered_cleared_geo = [line.buffer(tool / 2) for line in cleared_geo]
|
||||||
|
if not buffered_cleared_geo:
|
||||||
|
break
|
||||||
|
new_area = MultiPolygon(buffered_cleared_geo)
|
||||||
new_area = new_area.buffer(0.0000001)
|
new_area = new_area.buffer(0.0000001)
|
||||||
|
|
||||||
area = area.difference(new_area)
|
area = area.difference(new_area)
|
||||||
|
|||||||
Reference in New Issue
Block a user