Date:2013-09-30 09:51:48 (6 months 24 days ago)
Author:Werner Almesberger
Commit:e15d2b546bc1d46ed7d20c1627a1333cabeac8a7
Message:modules/sw-spdt-smt.fpd: draw complete outline of case

Files: modules/sw-spdt-smt.fpd (3 diffs)

Change Details

modules/sw-spdt-smt.fpd
99    __0: vec @(x, -oy/2)
1010    __1: vec .(0mm, -ky)
1111    __2: vec .(-kx/2, 0mm)
12    __3: vec .(0mm, ky*0.75)
12    __3: vec .(0mm, ky)
1313    line . __2 w
1414    __4: vec __1(kx/2, 0mm)
1515    line __2 . w
16    __5: vec .(0mm, ky*0.75)
16    __5: vec .(0mm, ky)
1717    line . __4 w
1818}
1919
...... 
4141}
4242
4343frame outline {
44    table
45        { x }
46        { -ox/2 }
47        { ox/2 }
48
49    __0: vec @(x, -oy/2)
50    __1: vec .(0mm, oy)
51    line __0 . w
44    __0: vec @(ox/2, -oy/2)
45    __1: vec __0(0mm, oy)
46    line . __0 w
47    __2: vec @(-ox/2, -oy/2)
48    line . __0 w
49    __3: vec __2(0mm, oy)
50    line . __2 w
5251}
5352
5453package "SW-${type}"
...... 
6463frame pads @
6564frame holes @
6665frame knob @
67measx outline.__0 >> outline.__0 -2.5mm-ky
6866measx holes.__0 >> holes.__0 -3.5mm-ky
6967measx holes.__2 -> holes.__1 2*hr+0.5mm
7068measy pads.__1 -> pads.__2 0.5mm
7169measx pads.__1 -> pads.__2 py+0.5mm
72measy outline.__0 -> outline.__1 1mm
7370measx pads.__0 -> pads.__0 -0.5mm
7471measy pads.__0 << holes.__0 -2mm
7572measy pads.__2 << holes.__0 -3mm
76measx knob.__1 >> knob.__1 ky
73measx knob.__1 >> knob.__1 ky+1mm
7774measy knob.__2 -> knob.__0 0.5mm
7875measx knob.__2 -> knob.__4 -0.7mm
76measy outline.__2 >> outline.__3 1mm
77measx outline.__2 >> outline.__0 -ky-2.5mm

Archive Download the corresponding diff file

Branches:
master



interactive