-
Notifications
You must be signed in to change notification settings - Fork 0
/
bulletsteps.scad
46 lines (40 loc) · 1.08 KB
/
bulletsteps.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
$fn = 30; // degree of rendering detail
rightangle = 90;
length = 70; // x
length_sides = 67.5; // x
width = 37.5; // y
start_x = 3.5;
start_y = 3.75;
x_gap = 7;
y_gap = 7.5;
step = 1.6;
base_height = 3.5;
diameter = 5;
difference() {
union() {
for(x = [0:9]) {
difference(){
translate([x * x_gap, 0, 0])
cube([x_gap, width, x * step + base_height]);
start_x = start_x + (x * x_gap);
for(y = [0:4]) {
start_y = start_y + (y * y_gap);
translate([start_x, start_y, -0.5])
cylinder(x * step + base_height + 1, d = diameter);
}
}
}
}
translate([2.5, 0, -5])
rotate([0, 0, 135])
cube([5, 3, 30]);
translate([length, 2.5, -5])
rotate([0, 0, 225])
cube([5, 3, 30]);
translate([0, width + 2.5, 0])
rotate([0, 0, 225])
cube([5, 3, 30]);
translate([length + 2.5, width, -5])
rotate([0, 0, 135])
cube([5, 3, 30]);
}