-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarriage.scad
83 lines (70 loc) · 2.22 KB
/
carriage.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
81
82
83
wheelbase = 200;
cartlength = wheelbase * 1.2;
cartwidth = 100;
wheeldiameter = 25;
wheelradius = wheeldiameter;
// suspensionheight = (wheeldiameter / 2) + 5;
suspensionheight = (wheelradius) + 5;
translate([wheelbase / 2, cartwidth, 0]) {
rotate([90, 0, 0]) {
cylinder(r = wheelradius, 10, center = true);
}
}
translate([wheelbase / 2, - (cartwidth), 0]) {
rotate([90, 0, 0]) {
cylinder(r = wheelradius, 10, center = true);
}
}
translate([-wheelbase / 2, cartwidth, 0]) {
rotate([90, 0, 0]) {
cylinder(r = wheelradius, 10, center = true);
}
}
translate([-wheelbase / 2, - (cartwidth), 0]) {
rotate([90, 0, 0]) {
cylinder(r = wheelradius, 10, center = true);
}
}
translate([0, 0, suspensionheight * 2]) {
cube([cartlength, cartwidth, 10], center = true);
}
translate([wheelbase / 2, 0, 0]) {
rotate([90, 0, 0]) {
cylinder(r = wheelradius * 0.25, h = (cartwidth * 2) + 15, center= true);
}
}
translate([-wheelbase / 2, 0, 0]) {
rotate([90, 0, 0]) {
cylinder(r = wheelradius * 0.25, h = (cartwidth * 2) + 15, center= true);
}
}
translate([wheelbase / 2, 0, suspensionheight]) {
rotate([90, 0, 0]) {
difference() {
cylinder(r = suspensionheight, 10, center = true);
cylinder(r = suspensionheight - 5, 11, center = true);
cube([102, suspensionheight / 6, 12]);
}
translate([suspensionheight, 0, 0]) {
cylinder(r = suspensionheight / 3, h = 12, center = true);
}
translate([-suspensionheight, 0, 0]) {
cylinder(r = suspensionheight / 3, h = 12, center = true);
}
}
}
translate([-wheelbase / 2, 0, suspensionheight]) {
rotate([90, 0, 0]) {
difference() {
cylinder(r = suspensionheight, 10, center = true);
cylinder(r = suspensionheight - 5, 11, center = true);
cube([102, suspensionheight / 6, 12]);
}
translate([suspensionheight, 0, 0]) {
cylinder(r = suspensionheight / 3, h = 12, center = true);
}
translate([-suspensionheight, 0, 0]) {
cylinder(r = suspensionheight / 3, h = 12, center = true);
}
}
}