Date:2012-03-24 14:49:16 (7 years 3 months ago)
Author:Werner Almesberger
Commit:24fdda0713df89cbbb9df9e6cf0b6f4c07fee8d6
Message:bacon/case/case.fpd: rearranged model of middle part

The USB bay only exists at the body layer, while the layers above
simply clear the whole area.
Files: bacon/case/case.fpd (4 diffs)

Change Details

bacon/case/case.fpd
104104/* ----- Middle part ------------------------------------------------------- */
105105
106106
107frame mid_rrect {
107frame mid_rrect_ridge {
108    RRECT_SETUP(edge_, @, width, length);
109        RRECT_DRAW_ARCS(edge_, ro_edge);
110
108111    base: vec @(red, red)
112    RRECT_SETUP(ridge_, base, width-2*red, length-2*red);
113        RRECT_DRAW_ARCS(ridge_, r);
114
115    usb_ur: vec edge_ur(-usb_roff, 0mm)
116    usb_ul: vec usb_ur(-usb_w, 0mm)
117    usb_ll: vec usb_ul(0mm, -red)
118    usb_lr: vec usb_ur(0mm, -red)
119
120    line edge_lly edge_uly /* outside */
121    line edge_ulx usb_ul
122    line usb_ul usb_ll /* USB bay */
123    line usb_ll ridge_ulx
124    line ridge_uly ridge_lly /* inside */
125    line ridge_llx ridge_lrx
126    line ridge_lry ridge_ury
127    line ridge_urx usb_lr
128    line usb_lr usb_ur /* USB bay */
129    line usb_ur edge_urx
130    line edge_ury edge_lry /* outside */
131    line edge_lrx edge_llx
132}
109133
110    RRECT_SETUP(edge_, base, width-2*red, length-2*red);
134
135frame mid_rrect_body {
136    RRECT_SETUP(edge_, @, width, length);
111137        RRECT_DRAW_ARCS(edge_, ro_edge);
112138
113    usb_ur: vec edge_ur(-usb_roff+red, 0mm)
139    usb_ur: vec edge_ur(-usb_roff, 0mm)
114140    usb_ul: vec usb_ur(-usb_w, 0mm)
115    usb_ll: vec usb_ul(0mm, -usb_d+red)
116    usb_lr: vec usb_ur(0mm, -usb_d+red)
141    usb_ll: vec usb_ul(0mm, -usb_d)
142    usb_lr: vec usb_ur(0mm, -usb_d)
117143
118144    line edge_llx edge_lrx
119145    line edge_ulx usb_ul
...... 
128154}
129155
130156
131frame mid_outline {
132    set red = 0mm
133    frame mid_rrect @
134}
135
136
137157frame mid_ridge {
138158    loop if = 1, mid_ridge
139159
140    frame mid_outline @
141160    set red = topborder
142    frame mid_rrect @
161    set r = ro_ridge
162    frame mid_rrect_ridge @
143163}
144164
145165
146166frame mid_pcb {
147167    loop if = 1, mid_pcb
148168
149    frame mid_outline @
150169    set red = topborder+topridge
151    frame mid_rrect @
170    set r = ri_ridge
171    frame mid_rrect_ridge @
152172}
153173
154174
...... 
161181frame mid_body {
162182    loop if = 1, mid_body
163183
164    frame mid_outline @
184    frame mid_rrect_body @
165185
166186    bc: vec @(width/2, batt_y)
167187    br: vec bc(batt_d/2, 0mm)
...... 
269289table
270290    /* usb_roff = offset from right outer case edge */
271291    { usb_w, usb_d, usb_roff }
272    { 8.5mm, 6.0mm, 4.0mm }
292    { 8.5mm, 6.0mm, 4.5mm }
273293
274294table
275295    /* post_y is from the edge of the battery bay. post_x is from the edge */

Archive Download the corresponding diff file

Branches:
master



interactive