10 hole_from_back = 7.2 + 0.5;
12 bolthead_dia = 7 + 1.0;
13 bolthead_depth = 5 + 20 - 8 + 2.7/2;
15 plasfix_dia = 4.5 + 0.5;
16 plasfix_head = plasfix_dia * 2;
17 plasfix_headdep = plasfix_dia;
20 height = light_height + backspc + extra_height;
22 octagon_fudge = 1/cos(22.5);
26 translate([-len/2, 0, 0])
27 cube([len, width, height]);
29 translate([xsgn * holespc/2, -1,
30 light_height - hole_from_back + extra_height]) {
32 rotate([0,0,360/8/2]) {
33 cylinder(r=bolthead_dia/2 * octagon_fudge,
34 h= bolthead_depth +1, $fn=8);
35 cylinder(r=hole_dia/2 * octagon_fudge,
41 translate([0, width/2, 0]) {
42 cylinder(r= plasfix_dia/2, h=50, $fn=20);
44 cylinder(r= plasfix_dia/2, h= plasfix_headdep + plasfix_sink, $fn=20);
46 cylinder(r= plasfix_head/2, h= plasfix_sink + 1, $fn=20);