From d408a63fcfcffce4a9f29d51156dfeea6c9eee12 Mon Sep 17 00:00:00 2001 From: Elena of Valhalla'' Grandi Date: Mon, 10 Nov 2014 22:08:37 +0100 Subject: Split library into polyhedra + faces --- designs/free_mono_d20.scad | 47 +++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) (limited to 'designs/free_mono_d20.scad') diff --git a/designs/free_mono_d20.scad b/designs/free_mono_d20.scad index 1ad6e81..77eb431 100644 --- a/designs/free_mono_d20.scad +++ b/designs/free_mono_d20.scad @@ -6,25 +6,30 @@ size = 14; side = s2s_d20(size); -d20(size) { - digits(side, 1, "free_mono"); - digits(side, 2, "free_mono"); - digits(side, 3, "free_mono"); - digits(side, 4, "free_mono"); - digits(side, 5, "free_mono"); - digits(side, 6, "free_mono"); - digits(side, 7, "free_mono"); - digits(side, 8, "free_mono"); - digits(side, 9, "free_mono"); - digits(side, 10, "free_mono"); - digits(side, 11, "free_mono"); - digits(side, 12, "free_mono"); - digits(side, 13, "free_mono"); - digits(side, 14, "free_mono"); - digits(side, 15, "free_mono"); - digits(side, 16, "free_mono"); - digits(side, 17, "free_mono"); - digits(side, 18, "free_mono"); - digits(side, 19, "free_mono"); - digits(side, 20, "free_mono"); +r = side*sqrt(10+2*sqrt(5))/4; + +difference() { + d20(size); + icosahedron_faces(r=r) { + digits(side, 1, "free_mono"); + digits(side, 2, "free_mono"); + digits(side, 3, "free_mono"); + digits(side, 4, "free_mono"); + digits(side, 5, "free_mono"); + digits(side, 6, "free_mono"); + digits(side, 7, "free_mono"); + digits(side, 8, "free_mono"); + digits(side, 9, "free_mono"); + digits(side, 10, "free_mono"); + digits(side, 11, "free_mono"); + digits(side, 12, "free_mono"); + digits(side, 13, "free_mono"); + digits(side, 14, "free_mono"); + digits(side, 15, "free_mono"); + digits(side, 16, "free_mono"); + digits(side, 17, "free_mono"); + digits(side, 18, "free_mono"); + digits(side, 19, "free_mono"); + digits(side, 20, "free_mono"); + } } -- cgit v1.2.3