aboutsummaryrefslogtreecommitdiff
path: root/openscad/base.scad
blob: 8d7a0e93a65ee37524f31a3fe61f6ced7aa871d4 (plain)
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
$fn = 25;
pip_radius = 1.5;
pip_spacing = 14/3; 
difference() {
	minkowski() {
		cube(14, true);
		sphere(1);
	}
	interval = [
		-pip_spacing, 
		0, 
		pip_spacing
	];
	dim = [-8, 8];
	for (d = dim) {
		for (pi = interval) {
			for (pj = interval) {
				translate([d, pi, pj])
					sphere(pip_radius);	
				translate([pi, d, pj])
					sphere(pip_radius);	
				translate([pi, pj, d])
					sphere(pip_radius);	
			}
		}
	}
}