chiark / gitweb /
pull-cord-keeper: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Aug 2015 22:23:06 +0000 (23:23 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Aug 2015 22:23:06 +0000 (23:23 +0100)
pull-cord-keeper.scad

index 1e367b6..ddbcaf6 100644 (file)
@@ -17,6 +17,9 @@ feedxgap = 5;
 
 feedzgap = 5;
 
+ribdepth = 2;
+ribheight = 3;
+
 module Oval(centredist, rad) {
   hull() {
     translate([-centredist/2,0,0]) circle(r=rad);
@@ -51,8 +54,28 @@ module Division(biggerpi) {
     cube([100, 100, 10]);
 }
 
-//difference(){
-%  Positive();
-//  Division(0);
-//}
-Division(1);
+module Ribs(){
+  imax = ceil(height*2 / ribheight);
+  for (i=[-imax:imax]) {
+    hull(){
+      translate([-ribdepth/2,
+                ribheight*i,
+                0])
+       polygon([[0,          0],
+                [ribdepth, -ribheight],
+                [ribdepth, +ribheight]]);
+      translate([50, 0])
+       square([1, height*2], center=true);
+    }
+  }
+}          
+
+module Demo(){
+  //difference(){
+  %  Positive();
+  //  Division(0);
+  //}
+  Division(1);
+}
+
+Ribs();