Commits

saar drimer  committed 65d288a

always add a round-cap style to extracted routing strokes, as that reflects how it will be drawn in Gerber

  • Participants
  • Parent commits bfc8920

Comments (0)

Files changed (1)

File utils/extract.py

             path_type = path.get('type')
             pcbmode_params = path.get('pcbmode') 
 
-            # get style information (mostyle to distinguish from 'fill' and 'stroke'
+            # get style information to distinguish from 'fill' and 'stroke'
             # routing
             if path_style is not None:
                 regex = r".*?%s:\s?(?P<s>[^;]*)(?:;|$)"
 
                 path_style = ''
 
-                #path_style = "stroke:%s;stroke-width:%s;" % (stroke, stroke_width)
                 if stroke_width is not None:
                     path_style += '%s:%s;' % ('stroke-width', stroke_width)
+                    # add curvature (stroke-linecap:round) to strokes to reflect how it
+                    # be appear in the Gerbers. (PCBmodE only use round aperture tracing for
+                    # tracks.)
+                    path_style += '%s:%s;' % ('stroke-linecap', 'round')
                 if fill in ['none']:
                     path_style += '%s:%s;' % ('fill', 'none')