chiark / gitweb /
pull-cord-keeper: wip, before cut up
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Aug 2015 16:39:14 +0000 (17:39 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Aug 2015 16:39:14 +0000 (17:39 +0100)
pull-cord-keeper.scad

index b7a6aa7..115ca91 100644 (file)
@@ -9,6 +9,8 @@ hcentredist = 10;
 blockdepth = 5;
 blockwidth = hcentredist*2 + 6;
 
+height = 20;
+
 module Oval(centredist, rad) {
   hull() {
     translate([-centredist/2,0,0]) circle(r=rad);
@@ -18,17 +20,20 @@ module Oval(centredist, rad) {
 
 module Hoop(){
   difference(){
-    Oval(hcentredist, houterrad);
+    hull(){
+      Oval(hcentredist, houterrad);
+      translate([0, (blockdepth + hoopthick)/2 + hinnerrad])
+       square([blockwidth,
+               blockdepth + hoopthick],
+              center=true);
+    }
     Oval(hcentredist, hinnerrad);
   }
 }
 
 module Positive(){
-  Hoop();
-  translate([0, (blockdepth + hoopthick)/2 + hinnerrad])
-    square([blockwidth,
-           blockdepth + hoopthick],
-          center=true);
+  linear_extrude(height=20)
+    Hoop();
 }
 
 Positive();