chiark / gitweb /
keyring-kay: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 14 Sep 2013 15:53:23 +0000 (16:53 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 14 Sep 2013 15:53:23 +0000 (16:53 +0100)
keyring-kay.scad [new file with mode: 0644]

diff --git a/keyring-kay.scad b/keyring-kay.scad
new file mode 100644 (file)
index 0000000..c12b891
--- /dev/null
@@ -0,0 +1,25 @@
+// -*- C -*-
+
+letterheight = 25;
+linewidth = 3.5;
+letterthick = 2.5;
+
+kdiag = 1;
+
+module kay () {
+  translate([0.1,0,0])
+    cube([linewidth, letterheight, letterthick]);
+  translate([0,letterheight/2,0])
+    for (mir=[0,1]) {
+      mirror([0,mir,0])
+       translate([0,-0.1,0])
+       multmatrix([[1,kdiag,0,0],
+                   [0,1,0,0],
+                   [0,0,1,0],
+                   [0,0,0,1]])
+       cube([linewidth * sqrt(1 + kdiag*kdiag),
+             letterheight/2 + 0.1, letterthick]);
+    }
+}
+
+kay();