chiark / gitweb /
osstest-arm-net-bracket: New tongue
[reprap-play.git] / osstest-arm-net-bracket.scad
1 // -*- C -*-
2
3 holedist = 64;
4 tonguewidth = 10;
5 tongue2width = 15;
6 totaldepth = 26;
7 tongue2depth = 35;
8 thick = 3;
9 tabover = 7;
10 tabunder = 15;
11
12 tabside = 7;
13
14 tonguethick = 4;
15 tongue2thick = 5;
16 strapthick = 2;
17 strapwidth = 5;
18 ridgewidth = 2;
19
20 holedia = 3.5;
21
22 tongue2x = tongue2width - holedist;
23
24 module Tongue(tw,tt,ad){
25   difference(){
26     translate([-tw, 0, 0])
27       cube([tw, ad, tt+strapthick]);
28     for (y=[thick+0.1, ad-ridgewidth-strapwidth])
29       translate([-tw-1, y, tt])
30         cube([tw+2, strapwidth, strapthick+1]);
31   }
32 }
33
34 module Object(){
35   difference(){
36     translate([-holedist-tabside, 0, 0])
37       cube([tabside*2+holedist, thick, tabunder+tabover]);
38     for (x=[-holedist,0])
39       translate([x, -1, tabunder])
40         rotate([-90,0,0])
41         cylinder(r= holedia/2+0.5, h=thick+2, $fn=20);
42   }
43   Tongue(tonguewidth,tonguethick,totaldepth);
44   translate([tongue2x,0,0])
45     Tongue(tongue2width,tongue2thick,tongue2depth+thick);
46 }
47
48 Object();