1. boldport
  2. Untitled project
  3. PCBmodE

Commits

Saar Drimer  committed 1a35d0b

fix problem with inner clear aread when generating pour masks

  • Participants
  • Parent commits b0cdb68
  • Branches production

Comments (0)

Files changed (1)

File utils/board.py

View file
  • Ignore whitespace
                     # hack. On the other hand, one can argue that having pours inside of
                     # shapes doesn't make sense anyway, because it alters its apperance, 
                     # and such shapes are stylistic anyway. OK, back to code now...
+
                     if gerber_lp is not None:
                         if len(gerber_lp) > 1:
                             path_segments = path.split('m')
+                            i = 0 
                             for path_segment in path_segments[1:]:
-                                mask_element = et.SubElement(routing_mask_group, 'path',
-                                                             #id="%s" % pcb_layer,
-                                                             type="mask_shape",
-                                                             style="fill:#000;stroke:none;",
-                                                             d='m '+path_segment)
+                                # only mask dark bits
+                                if gerber_lp[i] == 'd':
+                                    mask_element = et.SubElement(routing_mask_group, 'path',
+                                                                 #id="%s" % pcb_layer,
+                                                                 type="mask_shape",
+                                                                 style="fill:#000;stroke:none;",
+                                                                 d='m '+path_segment)
+
+                                i += 1
+
  
         for via in vias.values():