-
Notifications
You must be signed in to change notification settings - Fork 0
/
counters.scad
62 lines (56 loc) · 1.2 KB
/
counters.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
include <config/3DPrinter.scad>;
use <roundedCube.scad>;
module wallOfRootsFace(
size,
toughness="0",
font="Helvetica Neue:style=Bold"
) {
text(str("-0/-",toughness),
size=size,
font=font,
halign="center",
valign="center",
spacing=1.0,
direction="ltr",
language="en",
script="latin"
);
}
module wallOfRootsDie(
cubeSize = 15,
cornerRadius = 1,
font="Papyrus:style=Condensed"
) {
etchDepth = cubeSize/10;
etchZ = (cubeSize+cornerRadius)/2 - etchDepth;
fontSize = cubeSize/3-1;
color("lime")
etchedCube(cubeSize=cubeSize, cornerRadius=cornerRadius) {
wallOfRootsFace(size=fontSize, toughness=1);
wallOfRootsFace(size=fontSize, toughness=2);
wallOfRootsFace(size=fontSize, toughness=3);
wallOfRootsFace(size=fontSize, toughness=4);
wallOfRootsFace(size=fontSize, toughness=5);
wallOfRootsFace(size=fontSize, toughness=6);
}
}
/* wallOfRootsDie(
font="Helvetica Neue:style=Bold"
); */
/* module bolt(size = 2) {
scale([size, size, 0])
translate([-1, -1, 0])
polygon(points=[
[.8,0],
[2,1.3],
[.7,1.1],
[1.2, 2],
[0, .7],
[1.3, .9]
]);
} */
/* translate([20,0,0])
dotDie(cornerRadius=2) {
bolt();
} */
roundedCube();