- improvements in Importing SVG as Gerber - added an automatic source generation (it is not infallible)

- a hack to import correctly the QRCode exported as SVG from FlatCAM
This commit is contained in:
Marius Stanciu
2019-12-02 20:03:27 +02:00
committed by Marius
parent 462e9b4bd8
commit 80dcd3805a
5 changed files with 99 additions and 13 deletions

View File

@@ -141,7 +141,6 @@ def path2shapely(path, object_type, res=1.0):
coords.append(line.coords[1])
geo_element = Polygon(coords)
geometry.append(geo_element)
return geometry
@@ -306,7 +305,7 @@ def getsvggeo(node, object_type, root=None):
root = node
kind = re.search('(?:\{.*\})?(.*)$', node.tag).group(1)
geo = []
geo = list()
# Recurse
if len(node) > 0: