-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBelt.scad
More file actions
109 lines (89 loc) · 2.25 KB
/
Belt.scad
File metadata and controls
109 lines (89 loc) · 2.25 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Jim Samson
// Belt for rat Project
// November 12, 2018
include<3dPrintBed.scad>
include<arcBuilder.scad>
$fs=0.1;
footToMillimeters=304.8;
beltHeight=60; // millimeters
beltWidth=1;
// For line Length
lineLength=footToMillimeters/4;
linePlacement = footToMillimeters/8;
// For Circles
radius = 37.6;
angles = [-90, 90];
width = beltWidth;
offsetLength=0.7;
offsetForLines = offsetLength + 1;
belt();
module belt() {
//hotPlate(); // From 3dPrintBed hotPlate module
//gridPlate(); // From 3dPrintBed gridPlate module
union() {
rowThreeLines();
rowTwoLines();
rowOneLines();
rowFourHalfCircles();
rowTwoHalfCircle();
rowOneQuarterCircleA();
rowOneQuarterCircleB();
}
}
module rowFourHalfCircles() {
for(i = [0:1]) {
translate([lineLength*3, (i*lineLength) * 2 + offsetLength + 0.5 + lineLength,0]) {
linear_extrude(beltHeight) arc(radius, angles, width);
}
}
}
module rowThreeLines() {
for(i = [0 : 3]) {
translate([2 * lineLength, (i * lineLength) + linePlacement + offsetLength, 0]) {
lineX();
}
}
}
module rowTwoHalfCircle() {
translate([lineLength*2, (lineLength) * 2 + offsetLength + 0.5,0]) {
rotate([0,0,180]) {
linear_extrude(beltHeight) arc(radius, angles, width);
}
}
}
module rowTwoLines() {
for(i = [0 : 1]) {
translate([lineLength, 3 * (i * lineLength) + linePlacement + offsetLength, 0]) {
lineX();
}
}
}
module rowOneQuarterCircleA() {
translate([lineLength,lineLength + offsetLength + 0.5,0]) {
rotate([0,0,180]) {
linear_extrude(beltHeight) arc(radius, [0,90], width);
}
}
}
module rowOneQuarterCircleB() {
translate([lineLength,lineLength*3 + offsetLength + 0.5,0]) {
rotate([0,0,90]) {
linear_extrude(beltHeight) arc(radius, [0,90], width);
}
}
}
module rowOneLines() {
for(i = [0 : 1]) {
translate([linePlacement + offsetLength -0.2, (i*lineLength) + lineLength + offsetLength + 0.5,0]) {
lineY();
}
}
}
module lineX() {
#cube([lineLength, beltWidth, beltHeight]);
}
module lineY() {
rotate([0,0,90]) {
lineX();
}
}