~bkrpr/bookliberator/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* Plexi bracket
James Vasile, (c) 2009
Part of the Book Liberator project, http://bookliberator.com
This file is licensed under GPLv3 or later, Creative Commons
Attribution/Share-Alike License 3.0 and the GFDL.
*/

/* This file contains the corner brackets we can use to attach 1/8"
plexi (or glass) to the cube.  We would need 6 of the them.*/

// units are inches
plexi_thick = 1/8;
cube_edge = 0.75;
bracket_width = cube_edge + 2*plexi_thick; // It's a cube, so width=height=length
screw_diam = 1/4;
screw_head_diam = 1/4;
smidge=0.01; // used to make difference shapes overhang

module plexi_bracket() {
  union() {
    difference() {
      union(){
        // wall with screw hole for affixing to cube
        cube([bracket_width, bracket_width, plexi_thick]);

       //plexi-retaining walls
       translate([cube_edge+plexi_thick,0,0])
         cube([plexi_thick, bracket_width, bracket_width]);
       translate([0,cube_edge+plexi_thick,0])
         cube([bracket_width, plexi_thick, bracket_width]);
      }

      //offset screw holes
      translate([cube_edge/2 - screw_diam/2, cube_edge/2,-smidge])
        cylinder(h=plexi_thick+2*smidge, r2=screw_diam / 2, r1=screw_head_diam / 2);
      translate([screw_diam/2,bracket_width, 0])
        rotate([90,0,0])
	  translate([cube_edge/2, cube_edge/2,-smidge])
            cylinder(h=plexi_thick+2*smidge, r2=screw_diam / 2, r1=screw_head_diam / 2);
    }

  }
}

plexi_bracket();