-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoffsetcamv2.scad
51 lines (44 loc) · 869 Bytes
/
offsetcamv2.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
outerdiameter=120;
ringwidth=5.5;
height=5.5;
holerotation = 15;
//index=0;
//index=1;
//index=2;
//index=3;
//index=4;
index=5;
module axelpart()
{
translate([25,0,2.25]) {
difference(){
cylinder(h=10, r=20, center=true);
//union(){
//cube([6.4,6.4,100],true);
rotate(a=holerotation*index,v=[0,0,1]){
cube([6.4,6.4,100],true);
}
// }
}
}
}
module ring() {
$fa =0.1;
color("Lime")
difference() {
cylinder(h=height, r=outerdiameter/2, center=true);
cylinder(r=(outerdiameter/2)-ringwidth,h=height+2,center=true) ;
}
}
union(){
ring();
spoke();
rotate(a=90, v=[0,0,1]) {spoke(); }
rotate(a=45, v=[0,0,1]){
axelpart();
}
}
module spoke()
{
cube([outerdiameter-5,height,height],true);
}