diff options
author | jaseg <git@jaseg.de> | 2023-07-05 13:42:37 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-07-05 13:42:37 +0200 |
commit | cb188ac593b6f39b93d26224e9b16faa22babf8d (patch) | |
tree | eca61f82a7df05334aa691469707334afca46cbc /gerbonara/cad/kicad/primitives.py | |
parent | a5087636ab20f0a2f4a1746a845b95d143397287 (diff) | |
download | gerbonara-cb188ac593b6f39b93d26224e9b16faa22babf8d.tar.gz gerbonara-cb188ac593b6f39b93d26224e9b16faa22babf8d.tar.bz2 gerbonara-cb188ac593b6f39b93d26224e9b16faa22babf8d.zip |
kicad: various pcb re-serialization fixes
Diffstat (limited to 'gerbonara/cad/kicad/primitives.py')
-rw-r--r-- | gerbonara/cad/kicad/primitives.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gerbonara/cad/kicad/primitives.py b/gerbonara/cad/kicad/primitives.py index 3e78467..f066e15 100644 --- a/gerbonara/cad/kicad/primitives.py +++ b/gerbonara/cad/kicad/primitives.py @@ -63,6 +63,11 @@ class FillSegment: pts: PointList = field(default_factory=PointList) +@sexp_type('polygon') +class ZonePolygon: + pts: PointList = field(default_factory=PointList) + + @sexp_type('zone') class Zone: net: Named(int) = 0 @@ -75,10 +80,10 @@ class Zone: priority: OmitDefault(Named(int)) = 0 connect_pads: PadConnection = field(default_factory=PadConnection) min_thickness: Named(float) = 0.254 - filled_areas_thickness: Flag() = True + filled_areas_thickness: Named(YesNoAtom()) = True keepouts: List(ZoneKeepout) = field(default_factory=list) fill: ZoneFill = field(default_factory=ZoneFill) - polygon: Named(PointList) = field(default_factory=PointList) + polygon: ZonePolygon = field(default_factory=ZonePolygon) fill_polygons: List(FillPolygon) = field(default_factory=list) fill_segments: List(FillSegment) = field(default_factory=list) |