From: Ian Jackson Date: Sun, 5 Jul 2015 12:51:48 +0000 (+0100) Subject: pandemic-quarantines: first try X-Git-Tag: filamentspool-v2-release~180 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b52559747d341233af191fd026f5c3f3a07252a5;p=reprap-play.git pandemic-quarantines: first try --- diff --git a/pandemic-quarantines.scad b/pandemic-quarantines.scad index 5d210dc..834d128 100644 --- a/pandemic-quarantines.scad +++ b/pandemic-quarantines.scad @@ -3,10 +3,15 @@ prisml = 13; triedge = 13; -etchdepth = 1.5; +etchdepth = 1.0; figboxsize = 13; +// calculated + +triheight = triedge / 2 * sqrt(3); +tricentre = triedge / 2 * tan(30); + module Number(number) { translate([-figboxsize/2, -figboxsize/2]) import(file=str("pandemic-quarantine-l",number,".dxf"), convexity=100); @@ -14,7 +19,7 @@ module Number(number) { module FaceTriangle(){ x = triedge / 2; - y = triedge / 2 * sqrt(3); + y = triheight; polygon([[-x, 0], [ 0, y], [ x, 0]]); @@ -33,8 +38,19 @@ module NumberCut(number){ } module Etchings(){ - for (my=[0,1]) { - + for (rot=[0,180]) { + rotate([0,0, rot]) + translate([0, -prisml/2, triedge * 0.3]) + rotate([90, 0, 0]) + NumberCut(2); + } + for (rot=[0,120,240]) { + translate([0,0, tricentre]) + rotate([0, rot, 0]) + translate([0,0, -tricentre]) + rotate([0,180,0]) + rotate([0,0, rot==240 ? 90 : -90]) + NumberCut(1); } }