-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspacer.escad
39 lines (32 loc) · 1.03 KB
/
spacer.escad
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
gap = 1;
barWidth = 45;
barLength = 175;
batteryTopWidth = 123;
batteryStepHeight = 23;
batteryStepLength = 23;
batteryBaseWidth = batteryTopWidth + 2 * batteryStepLength;
batteryGapWidth = 15;
batteryGapDepth = 5;
sideHeight = 6;
sideWidth = 4;
sideLength = batteryBaseWidth;
baseHeight = 6;
baseWidth = barWidth + 2 * (sideWidth + gap);
baseLength = sideLength;
stepHeight = batteryStepHeight;
stepLength = batteryStepLength - 2 * gap;
guideWidth = batteryGapWidth - 2 * gap;
guideHeight = batteryGapDepth - gap;
union() {
cube(baseLength, baseHeight, baseWidth);
translate([0, baseHeight])
cube(stepLength, stepHeight, baseWidth);
translate([baseLength - stepLength, baseHeight])
cube(stepLength, stepHeight, baseWidth);
translate([stepLength, baseHeight, (baseWidth - guideWidth) / 2])
cube(baseLength - 2 * stepLength, guideHeight, guideWidth);
translate([0, -sideHeight, 0])
cube(sideLength, sideHeight, sideWidth);
translate([0, -sideHeight, baseWidth - sideWidth])
cube(sideLength, sideHeight, sideWidth);
}