- fixed a small bug in the Tool Solder Paste: the App don't take into consideration pads already filled with solder paste.
This commit is contained in:
parent
568d97d899
commit
2291a58727
|
@ -93,8 +93,8 @@ class App(QtCore.QObject):
|
||||||
log.addHandler(handler)
|
log.addHandler(handler)
|
||||||
|
|
||||||
# Version
|
# Version
|
||||||
version = 8.910
|
version = 8.911
|
||||||
version_date = "2019/02/23"
|
version_date = "2019/03/2"
|
||||||
beta = True
|
beta = True
|
||||||
|
|
||||||
# current date now
|
# current date now
|
||||||
|
|
|
@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
|
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
|
24.02.2019
|
||||||
|
|
||||||
|
- fixed a small bug in the Tool Solder Paste: the App don't take into consideration pads already filled with solder paste.
|
||||||
|
|
||||||
23.02.2019
|
23.02.2019
|
||||||
|
|
||||||
- remade the SolderPaste geometry generation function in ToolSoderPaste to work in certain scenarios where the Gerber pads in the SolderPaste mask Gerber may be just pads outlines
|
- remade the SolderPaste geometry generation function in ToolSoderPaste to work in certain scenarios where the Gerber pads in the SolderPaste mask Gerber may be just pads outlines
|
||||||
|
|
|
@ -997,7 +997,7 @@ class SolderPaste(FlatCAMTool):
|
||||||
geo_obj.special_group = 'solder_paste_tool'
|
geo_obj.special_group = 'solder_paste_tool'
|
||||||
|
|
||||||
geo = LineString()
|
geo = LineString()
|
||||||
work_geo = []
|
work_geo = self.flat_geometry
|
||||||
rest_geo = []
|
rest_geo = []
|
||||||
tooluid = 1
|
tooluid = 1
|
||||||
|
|
||||||
|
@ -1021,7 +1021,7 @@ class SolderPaste(FlatCAMTool):
|
||||||
# We get possible issues if we try to directly use the Polygons, due of possible the interiors,
|
# We get possible issues if we try to directly use the Polygons, due of possible the interiors,
|
||||||
# so we do a hack: get first the exterior in a form of LinearRings and then convert back to Polygon
|
# so we do a hack: get first the exterior in a form of LinearRings and then convert back to Polygon
|
||||||
# because intersection does not work on LinearRings
|
# because intersection does not work on LinearRings
|
||||||
for g in self.flat_geometry:
|
for g in work_geo:
|
||||||
# for whatever reason intersection on LinearRings does not work so we convert back to Polygons
|
# for whatever reason intersection on LinearRings does not work so we convert back to Polygons
|
||||||
poly = Polygon(g)
|
poly = Polygon(g)
|
||||||
x_min, y_min, x_max, y_max = poly.bounds
|
x_min, y_min, x_max, y_max = poly.bounds
|
||||||
|
|
Loading…
Reference in New Issue