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