summaryrefslogtreecommitdiff
path: root/gerber/layers.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2014-10-18 01:44:51 -0400
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2014-10-18 01:44:51 -0400
commit6d2db67e6d0973ce26ce3a6700ca44295f73fea7 (patch)
treee329712e0278883bacc9a5f8501c8e48e1a05d54 /gerber/layers.py
parentd90da4000f3fd542da1896e705d3db43fd48ea4b (diff)
downloadgerbonara-6d2db67e6d0973ce26ce3a6700ca44295f73fea7.tar.gz
gerbonara-6d2db67e6d0973ce26ce3a6700ca44295f73fea7.tar.bz2
gerbonara-6d2db67e6d0973ce26ce3a6700ca44295f73fea7.zip
Refactor rendering
Diffstat (limited to 'gerber/layers.py')
-rw-r--r--gerber/layers.py54
1 files changed, 54 insertions, 0 deletions
diff --git a/gerber/layers.py b/gerber/layers.py
new file mode 100644
index 0000000..b10cf16
--- /dev/null
+++ b/gerber/layers.py
@@ -0,0 +1,54 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# copyright 2014 Hamilton Kibbe <ham@hamiltonkib.be>
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+
+# http://www.apache.org/licenses/LICENSE-2.0
+
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+top_copper_ext = ['gtl', 'cmp', 'top', ]
+top_copper_name = ['art01', 'top', 'GTL', 'layer1', 'soldcom', 'comp', ]
+
+bottom_copper_ext = ['gbl', 'sld', 'bot', 'sol', ]
+bottom_coppper_name = ['art02', 'bottom', 'bot', 'GBL', 'layer2', 'soldsold', ]
+
+internal_layer_ext = ['in', 'gt1', 'gt2', 'gt3', 'gt4', 'gt5', 'gt6', 'g1',
+ 'g2', 'g3', 'g4', 'g5', 'g6', ]
+internal_layer_name = ['art', 'internal']
+
+power_plane_name = ['pgp', 'pwr', ]
+ground_plane_name = ['gp1', 'gp2', 'gp3', 'gp4', 'gt5', 'gp6', 'gnd',
+ 'ground', ]
+
+top_silk_ext = ['gto', 'sst', 'plc', 'ts', 'skt', ]
+top_silk_name = ['sst01', 'topsilk', 'silk', 'slk', 'sst', ]
+
+bottom_silk_ext = ['gbo', 'ssb', 'pls', 'bs', 'skb', ]
+bottom_silk_name = ['sst', 'bsilk', 'ssb', 'botsilk', ]
+
+top_mask_ext = ['gts', 'stc', 'tmk', 'smt', 'tr', ]
+top_mask_name = ['sm01', 'cmask', 'tmask', 'mask1', 'maskcom', 'topmask',
+ 'mst', ]
+
+bottom_mask_ext = ['gbs', 'sts', 'bmk', 'smb', 'br', ]
+bottom_mask_name = ['sm', 'bmask', 'mask2', 'masksold', 'botmask', 'msb', ]
+
+top_paste_ext = ['gtp', 'tm']
+top_paste_name = ['sp01', 'toppaste', 'pst']
+
+bottom_paste_ext = ['gbp', 'bm']
+bottom_paste_name = ['sp02', 'botpaste', 'psb']
+
+board_outline_ext = ['gko']
+board_outline_name = ['BDR', 'border', 'out', ]
+
+