summaryrefslogtreecommitdiff
path: root/gerbonara/cad/protoserve.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-26 22:57:14 +0200
committerjaseg <git@jaseg.de>2023-04-26 22:57:14 +0200
commit38f766dc42e3bec72236cc34c6b74fc4dab37c4e (patch)
treefc49b6ea2d04d389185db29e6d4893b38cd27e91 /gerbonara/cad/protoserve.py
parent549a33d386a19b976248f3a357135f3b9f579cdc (diff)
downloadgerbonara-38f766dc42e3bec72236cc34c6b74fc4dab37c4e.tar.gz
gerbonara-38f766dc42e3bec72236cc34c6b74fc4dab37c4e.tar.bz2
gerbonara-38f766dc42e3bec72236cc34c6b74fc4dab37c4e.zip
Add spiky layout to protoserve
Diffstat (limited to 'gerbonara/cad/protoserve.py')
-rw-r--r--gerbonara/cad/protoserve.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gerbonara/cad/protoserve.py b/gerbonara/cad/protoserve.py
index a210e91..c425af7 100644
--- a/gerbonara/cad/protoserve.py
+++ b/gerbonara/cad/protoserve.py
@@ -106,6 +106,9 @@ def deserialize(obj, unit):
pattern_dia = mil(float(obj['pattern_dia']))
return pb.PatternProtoArea(2*pitch, 2*pitch, pb.THTFlowerProto(pitch, hole_dia, pattern_dia, unit=unit), unit=unit)
+ case 'spiky':
+ return pb.PatternProtoArea(2.54, 2.54, pb.SpikyProto(), unit=unit)
+
case 'rf':
pitch = float(obj.get('pitch', 2.54))
hole_dia = float(obj['hole_dia'])