Date:2012-03-29 23:39:17 (7 years 5 months ago)
Author:Werner Almesberger
Commit:ddc5e0e935172132e341364249852a4f6bd127f9
Message:bacon/case/: corrections of bottom part; updates for machining

Files: bacon/case/Makefile (1 diff)
bacon/case/case.fpd (4 diffs)

Change Details

bacon/case/Makefile
1414# new run (10 45, 135 85, 7.8)
1515# #1: 13 45
1616# #2: 75 48
17# Z1 = -44
18# PIECE_Z = 7.9
1719
18X0 = 75
19Y0 = 48
20Z1 = -50
20X0 = 5
21Y0 = 45
22Z1 = -44
2123PIECE = -5 -5 30 55
22PIECE_Z = 7.9
24PIECE_Z = 5.5
2325Z_STEP = 2
2426CLEARANCE = 2
2527SPEED_XY = 1
bacon/case/case.fpd
1414#define QLL(pfx, r) \
1515    Q(pfx##lly, pfx##llx, pfx##ll, (0mm, r), (r, 0mm))
1616#define QLR(pfx, r) \
17    Q(pfx##lrx, pfx##lry, pfx##lr, (-r, 0mm), (0mm, r))
17    Q(pfx##lrx, pfx##lry, pfx##lr, (-(r), 0mm), (0mm, r))
1818#define QUL(pfx, r) \
19    Q(pfx##ulx, pfx##uly, pfx##ul, (r, 0mm), (0mm, -r))
19    Q(pfx##ulx, pfx##uly, pfx##ul, (r, 0mm), (0mm, -(r)))
2020#define QUR(pfx, r) \
21    Q(pfx##ury, pfx##urx, pfx##ur, (0mm, -r), (-r, 0mm))
21    Q(pfx##ury, pfx##urx, pfx##ur, (0mm, -(r)), (-(r), 0mm))
2222
2323/*
2424 * Rectangle with rounded corners.
...... 
205205    QUL(edge_, ro_edge);
206206    QUR(edge_, ro_edge);
207207
208    set side = (width-cvr_w-cvr_play)/2-red
208    set side = (width-cvr_w-2*cvr_play)/2-red
209209    cvr_ll: vec edge_ll(side, 0mm)
210210    cvr_lr: vec edge_lr(-side, 0mm)
211    cvr_ul: vec cvr_ll(0mm, cvr_d+cvr_play+red)
212    cvr_ur: vec cvr_lr(0mm, cvr_d+cvr_play+red)
211    cvr_ul: vec cvr_ll(0mm, cvr_d+2*cvr_play+red)
212    cvr_ur: vec cvr_lr(0mm, cvr_d+2*cvr_play+red)
213213
214    line edge_ll cvr_ll
214    line edge_ll cvr_ll /* outside */
215215
216    line cvr_ll cvr_ul /* cover bay */
217    line cvr_ul cvr_ur
218    line cvr_ur cvr_lr
216    QUL(cvr_, cvr_r+red+cvr_play) /* cover bay */
217    QUR(cvr_, cvr_r+red+cvr_play)
219218
220    line cvr_lr edge_lr
219    line cvr_ll cvr_uly
220    line cvr_ulx cvr_urx
221    line cvr_ury cvr_lr
222
223    line cvr_lr edge_lr /* outside */
221224    line edge_ll edge_uly
222225    line edge_lr edge_ury
223226    line edge_ulx edge_urx
...... 
238241frame bot_base {
239242    loop if = 1, bot_base
240243
241    set red = cvr_foot+cvr_play
244    set red = cvr_foot
242245    frame bot_rrect @
243246}
244247
...... 
297300    { 20.2mm, 12.1mm, 4.1mm, 4.0mm, 5.0mm, 4.5mm }
298301
299302table
300    { cvr_w, cvr_d, cvr_f, cvr_foot, cvr_play }
301    { 20.0mm, 15.0mm, 5.0mm, 0.8mm, 0.1 mm }
303    { cvr_w, cvr_d, cvr_f, cvr_foot, cvr_play, cvr_r }
304    { 20.0mm, 15.0mm, 5.0mm, 0.8mm, 0.1mm, 2.0mm }
302305
303306set width = pcbw+2*(pcbgap+topridge+topborder)
304307set length = pcbl+2*(pcbgap+topridge+topborder)

Archive Download the corresponding diff file

Branches:
master



interactive