~bkrpr/bookliberator/trunk

« back to all changes in this revision

Viewing changes to cad/plexi_bracket.scad

  • Committer: James Vasile
  • Date: 2009-12-17 15:09:42 UTC
  • Revision ID: james@hackervisions.org-20091217150942-8o40tyhq2p0w63sh
first draft of plexi brackets

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Plexi bracket
 
2
James Vasile, (c) 2009
 
3
Part of the Book Liberator project, http://bookliberator.com
 
4
This file is licensed under GPLv3 or later, Creative Commons
 
5
Attribution/Share-Alike License 3.0 and the GFDL.
 
6
*/
 
7
 
 
8
/* This file contains the corner brackets we can use to attach 1/8"
 
9
plexi (or glass) to the cube.  We would need 6 of the them.*/
 
10
 
 
11
// units are inches
 
12
plexi_thick = 1/8;
 
13
cube_edge = 0.75;
 
14
bracket_width = cube_edge + 2*plexi_thick; // It's a cube, so width=height=length
 
15
screw_diam = 1/4;
 
16
screw_head_diam = 1/4;
 
17
smidge=0.01; // used to make difference shapes overhang
 
18
 
 
19
module plexi_bracket() {
 
20
  union() {
 
21
    difference() {
 
22
      union(){
 
23
        // wall with screw hole for affixing to cube
 
24
        cube([bracket_width, bracket_width, plexi_thick]);
 
25
 
 
26
       //plexi-retaining walls
 
27
       translate([cube_edge+plexi_thick,0,0])
 
28
         cube([plexi_thick, bracket_width, bracket_width]);
 
29
       translate([0,cube_edge+plexi_thick,0])
 
30
         cube([bracket_width, plexi_thick, bracket_width]);
 
31
      }
 
32
 
 
33
      //offset screw holes
 
34
      translate([cube_edge/2 - screw_diam/2, cube_edge/2,-smidge])
 
35
        cylinder(h=plexi_thick+2*smidge, r2=screw_diam / 2, r1=screw_head_diam / 2);
 
36
      translate([screw_diam/2,bracket_width, 0])
 
37
        rotate([90,0,0])
 
38
          translate([cube_edge/2, cube_edge/2,-smidge])
 
39
            cylinder(h=plexi_thick+2*smidge, r2=screw_diam / 2, r1=screw_head_diam / 2);
 
40
    }
 
41
 
 
42
  }
 
43
}
 
44
 
 
45
plexi_bracket();