diff options
author | jaseg <git@jaseg.de> | 2023-04-06 15:17:37 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-10 23:57:15 +0200 |
commit | ba920604311d73fd3a9563d4fcb147d508f080cf (patch) | |
tree | eea38f423159f56a19e395f7b595c805d290e0ec /gerbonara/cad/primitives.py | |
parent | 24577464ee0745e2e866dd5eb9f9d3005f891cde (diff) | |
download | gerbonara-ba920604311d73fd3a9563d4fcb147d508f080cf.tar.gz gerbonara-ba920604311d73fd3a9563d4fcb147d508f080cf.tar.bz2 gerbonara-ba920604311d73fd3a9563d4fcb147d508f080cf.zip |
Copper fill WIP
Diffstat (limited to 'gerbonara/cad/primitives.py')
-rw-r--r-- | gerbonara/cad/primitives.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gerbonara/cad/primitives.py b/gerbonara/cad/primitives.py index 78fc238..b566d76 100644 --- a/gerbonara/cad/primitives.py +++ b/gerbonara/cad/primitives.py @@ -391,12 +391,18 @@ class THTPad(Pad): @dataclass class Hole(Positioned): diameter: float + mask_copper_margin: float = 0.2 def render(self, layer_stack): x, y, rotation = self.abs_pos hole = Flash(x, y, ExcellonTool(self.diameter, plated=False, unit=self.unit), unit=self.unit) layer_stack.drill_npth.objects.append(hole) + + if self.mask_copper_margin > 0: + mask = Flash(x, y, CircleAperture(self.mask_copper_margin, unit=self.unit), polarity_dark=False, unit=self.unit) + layer_stack['top', 'copper'].objects.append(mask) + layer_stack['bottom', 'copper'].objects.append(mask) @property def single_sided(self): |