chiark / gitweb /
treefoi: more
[reprap-play.git] / treefoil.scad.pl
index b1ceecbec8400a3129e0aeffd953b0e3f234910d..160c175ddda7c8e0a712f75a955b37c62d12be0e 100755 (executable)
@@ -36,3 +36,24 @@ o "}\n\n";
 while (<DATA>) { o $_ }
 
 __DATA__
+
+thick = 10;
+edgeu = 20;
+
+// calculated
+
+octa_long = thick;
+octa_short = octa_long / (1 + sqrt(2));
+
+module OctaThing() {
+    hull(){
+       for (r = [[0,0,0], [90,0,0], [0,90,0]]) {
+           rotate(r)
+               cube([ octa_short,octa_short, octa_long ], center=true);
+       }
+    }
+}
+
+OctaThing();
+
+