- fixed the Copy Object function to copy also the source_file content

- Copper Thieving Tool - when the clearance value for the pattern plating mask is negative it will be applied to the origin soldermask too
This commit is contained in:
Marius Stanciu
2019-12-04 20:00:05 +02:00
committed by Marius
parent 9b48db7f54
commit 951562fbae
3 changed files with 17 additions and 1 deletions

View File

@@ -1298,6 +1298,13 @@ class ToolCopperThieving(FlatCAMTool):
if isinstance(app_obj.sm_object.solid_geometry, MultiPolygon):
geo_list = list(app_obj.sm_object.solid_geometry.geoms)
# if the clearance is negative apply it to the original soldermask too
if ppm_clearance < 0:
temp_geo_list = list()
for geo in geo_list:
temp_geo_list.append(geo.buffer(ppm_clearance))
geo_list = temp_geo_list
plated_area = 0.0
for geo in geo_list:
plated_area += geo.area