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/zampa_d12.scad | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'designs/zampa_d12.scad') diff --git a/designs/zampa_d12.scad b/designs/zampa_d12.scad index 691e2f5..7f5016b 100644 --- a/designs/zampa_d12.scad +++ b/designs/zampa_d12.scad @@ -7,17 +7,22 @@ size = 14; side = s2s_d12(size); -d12(size) { - gfx(side, "zampa"); - 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"); +r = side*sqrt(3)*(1+sqrt(5))/4; + +difference() { + d12(size); + dodecahedron_faces(r=r) { + gfx(side, "zampa"); + 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"); + } } -- cgit v1.2.3