diff options
author | jaseg <git@jaseg.de> | 2023-09-20 14:24:15 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-09-20 14:24:15 +0200 |
commit | 5f1350d4f4e1c190bf0b2db12b8183519b2d3413 (patch) | |
tree | a9f2220b7b9142c0e2181918f4d925269fd97632 /gerbonara/cad/kicad/footprints.py | |
parent | 5ff40e0ad1ec2ebad7633b11df373b06334f20e2 (diff) | |
download | gerbonara-5f1350d4f4e1c190bf0b2db12b8183519b2d3413.tar.gz gerbonara-5f1350d4f4e1c190bf0b2db12b8183519b2d3413.tar.bz2 gerbonara-5f1350d4f4e1c190bf0b2db12b8183519b2d3413.zip |
coil gen: add kicad pcb export
Diffstat (limited to 'gerbonara/cad/kicad/footprints.py')
-rw-r--r-- | gerbonara/cad/kicad/footprints.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gerbonara/cad/kicad/footprints.py b/gerbonara/cad/kicad/footprints.py index 5c27855..90050ef 100644 --- a/gerbonara/cad/kicad/footprints.py +++ b/gerbonara/cad/kicad/footprints.py @@ -95,6 +95,10 @@ class Line: locked: Flag() = False tstamp: Timestamp = None + def to_graphical_primitive(self, flip=False): + # FIXME flip + return gr.Line(self.start, self.end, self.layer, self.width, self.stroke, self.tstamp) + def render(self, variables=None, cache=None): dasher = Dasher(self) dasher.move(self.start.x, self.start.y) @@ -183,6 +187,9 @@ class Arc: locked: Flag() = False tstamp: Timestamp = None + def to_graphical_primitive(self, flip=False): + # FIXME flip + return gr.Arc(self.start, self.mid, self.end, self.layer, self.width, self.stroke, self.tstamp) def render(self, variables=None, cache=None): mx, my = self.mid.x, self.mid.y |