chiark / gitweb /
treefoi: more
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Jan 2019 18:39:00 +0000 (18:39 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Jan 2019 18:39:00 +0000 (18:39 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
treefoil.scad.pl

index b1ceecb..82b0c59 100755 (executable)
@@ -36,3 +36,21 @@ o "}\n\n";
 while (<DATA>) { o $_ }
 
 __DATA__
+
+thick = 8;
+
+// calculated
+
+octa_long = thick;
+octa_short = octa_long / (1 + sqrt(2));
+
+module OctaThing() {
+    foreach (r = [[0,0,0], [90,0,0], [0,90,0]]) {
+       rotate(r)
+           cube([ octa_short,octa_short, octa_long ], center=true);
+    }
+}
+
+OctaThing();
+
+