]> www.fi.muni.cz Git - things.git/blob - bridge.scad
dual-led-strips second version
[things.git] / bridge.scad
1 infty = 1000;
2 eps = 0.01;
3
4 gap = 25;       // the air gap of the bridge
5 width = 10;      // width of the bridge
6 thickness = 1;  // thickness of the bridge
7 height = 2;     // height of the column under the bridge
8 top_len = 4;    // length of the top of the bridge column
9 base_add = 2;   // make the base of the column this wider and longer
10
11 // two columns
12 for (x = [-1,1]) {
13         scale([1, x, 1])
14         translate([0, gap/2+top_len/2, 0])
15         hull() { // base column
16                 // bottom rectangle
17                 translate([-(width+base_add)/2, -(top_len+base_add)/2, 0])
18                         cube([width+base_add, top_len+base_add, eps]);
19                 // top rectangle
20                 translate([-width/2, -top_len/2, height])
21                         cube([width, top_len, eps]);
22         }
23 }
24
25 // top rectangle
26 translate([-width/2, -(gap+2*top_len)/2, height])
27         cube([width, gap+2*top_len, thickness]);