~bkrpr/bookliberator/trunk

« back to all changes in this revision

Viewing changes to cad/light_bracket.scad

  • Committer: James Vasile
  • Date: 2009-12-17 14:25:07 UTC
  • Revision ID: james@hackervisions.org-20091217142507-gt6x9bzj3orzcqoj
Removed extraneous code from light bracket

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
translate([bracket_length+0.6,0,0]) bracket();
54
54
end_bracket();
55
55
 
56
 
 
57
 
 
58
 
 
59
 
 
60
 
module body_half(){
61
 
  length=2.2;
62
 
  width=2.2;
63
 
  height=1.0;
64
 
  plexi_thickness = 0.135; // 1/8" plus .1" for tolerance
65
 
  flex_thickness = plexi_thickness/3; // shave off a little so there is room to grip the plexi
66
 
  pcd = 0.75; // plexi channel depth lets us grib the material with surface area of 3/4"xlength
67
 
  tripod_offset = width/2; // center the through-hole
68
 
  tooth_height = height/4;
69
 
  tooth_thickness = 0.2;
70
 
  screw_diameter = 0.25;
71
 
 
72
 
  union() {
73
 
    // add positive teeth so the two halves interlock
74
 
    translate([length/2,width-tooth_thickness,height/2])
75
 
      cube([length/4, tooth_thickness, tooth_height]);
76
 
    translate([0,width-tooth_thickness,height/2])
77
 
      cube([length/4, tooth_thickness, tooth_height]);
78
 
    
79
 
    // construct the rest as a solid block with some bits removed
80
 
    difference() {
81
 
      // Main body
82
 
      cube([length, width, height/2]);
83
 
 
84
 
      // channel for plexiglass
85
 
        translate([-1,0,height/2 - plexi_thickness/2]) // note the -1 so we're not left with an edge of zero thickness
86
 
        cube([length+2, pcd, plexi_thickness]);      // note the +2 so we're not left with an edge of zero thickness
87
 
 
88
 
      // little bit shaved off for flexibility
89
 
      translate([-1, 0, height/2 - flex_thickness/2])
90
 
        cube([length+2, width-tooth_thickness, height]);
91
 
      
92
 
      // cut out spaces for the other half's teeth
93
 
      translate([length/4,width-tooth_thickness,height/2-tooth_height])
94
 
        cube([length/4, tooth_thickness+1, tooth_height+1]);
95
 
      translate([3*length/4,width-tooth_thickness, height/2-tooth_height])
96
 
        cube([length/4+1, tooth_thickness+1, tooth_height+1]);
97
 
      
98
 
      // screw hole
99
 
      translate([length/2,tripod_offset,-screw_diameter])
100
 
      cylinder(h=height+5, r1=screw_diameter, r2=screw_diameter);
101
 
    }
102
 
  }
103
 
}
104
 
 
105
 
//body_half();