-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrossside.scad
80 lines (55 loc) · 1.19 KB
/
crossside.scad
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
barwidth = 20;
width_ridge=4;
widthNema17=43;
nema17holeOffset =6;
nema17innerHole=25/2;
nema17Shaft=8/2;
motorThickNess=5;
offsetx =0;
offsety =0;
barpositionz=30;
rodwidth =8.2;
nutwidth=16;
height = 90;
width = 80;
bearingod=15;
topbardistance=23;
bearinglength=26;
od624=13;
odpulley=12;
timingbeltthickness=1;
thickness=8;
spacing_bars = 50;
largeCircle = 70.0;
holeSize=5.5;
bardistance=50;
bearingoffset=2;
holes = [
[barwidth/2,barwidth/2,5],
[barwidth/2,width-barwidth/2,5],
];
difference() {
union() {
cube([barwidth,width,thickness],false);
translate([-25,width-25,0])
cube([30,25,thickness],false);
translate([0,width/3,0])
rotate([0,0,45]){
cube([barwidth,width,thickness],false);
}
}
translate([barwidth/2+width,barwidth/2+width,0]) {
cylinder(h=thickness+2,r=50, center = false, $fn=100);
}
for(i = holes) {
translate([offsetx + i[0],offsety + i[1],0])
cylinder(h=thickness+2,r=holeSize/2, center = false, $fs=1);
}
translate([0,width/3,0])
rotate([0,0,45]){
translate([barwidth/2,barwidth/2+20,0])
cylinder(h=thickness+2,r=holeSize/2, center = false, $fs=1);
translate([barwidth/2,width-barwidth/2,0])
cylinder(h=thickness+2,r=holeSize/2, center = false, $fs=1);
}
}