aboutsummaryrefslogtreecommitdiff
path: root/designs/epic_level_counter.scad
diff options
context:
space:
mode:
Diffstat (limited to 'designs/epic_level_counter.scad')
-rw-r--r--designs/epic_level_counter.scad47
1 files changed, 25 insertions, 22 deletions
diff --git a/designs/epic_level_counter.scad b/designs/epic_level_counter.scad
index b0d3464..c1781c8 100644
--- a/designs/epic_level_counter.scad
+++ b/designs/epic_level_counter.scad
@@ -6,27 +6,30 @@ size = 30;
side = s2s_d20(size);
-echo(side);
+r = side*sqrt(10+2*sqrt(5))/4;
-d20(size) {
- digits(side, 1, "free_mono");
- digits(side, 16, "free_mono");
- digits(side, 3, "free_mono");
- digits(side, 18, "free_mono");
- digits(side, 7, "free_mono");
- digits(side, 11, "free_mono");
- digits(side, 5, "free_mono");
- digits(side, 13, "free_mono");
- digits(side, 10, "free_mono");
- digits(side, 14, "free_mono");
- digits(side, 9, "free_mono");
- digits(side, 15, "free_mono");
- digits(side, 8, "free_mono");
- digits(side, 19, "free_mono");
- digits(side, 6, "free_mono");
- digits(side, 12, "free_mono");
- digits(side, 4, "free_mono");
- digits(side, 17, "free_mono");
- digits(side, 2, "free_mono");
- digits(side, 20, "free_mono");
+difference() {
+ d20(size);
+ icosahedron_faces(r=r) {
+ digits(side, 1, "free_mono");
+ digits(side, 16, "free_mono");
+ digits(side, 3, "free_mono");
+ digits(side, 18, "free_mono");
+ digits(side, 7, "free_mono");
+ digits(side, 11, "free_mono");
+ digits(side, 5, "free_mono");
+ digits(side, 13, "free_mono");
+ digits(side, 10, "free_mono");
+ digits(side, 14, "free_mono");
+ digits(side, 9, "free_mono");
+ digits(side, 15, "free_mono");
+ digits(side, 8, "free_mono");
+ digits(side, 19, "free_mono");
+ digits(side, 6, "free_mono");
+ digits(side, 12, "free_mono");
+ digits(side, 4, "free_mono");
+ digits(side, 17, "free_mono");
+ digits(side, 2, "free_mono");
+ digits(side, 20, "free_mono");
+ }
}