chiark / gitweb /
pull-cord-keeper: Break out VExtrude and OuterOval
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 31 Aug 2015 22:07:29 +0000 (23:07 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 31 Aug 2015 22:07:29 +0000 (23:07 +0100)
pull-cord-keeper.scad

index 4812465..d225fb1 100644 (file)
@@ -33,10 +33,20 @@ module Oval(centredist, rad) {
   }
 }  
 
+module VExtrude(){
+  translate([0,0, -height/2])
+    linear_extrude(height=20)
+    children(0);
+}
+
+module OuterOval(){
+  Oval(hcentredist, houterrad);
+}
+
 module Hoop(){
   difference(){
     hull(){
-      Oval(hcentredist, houterrad);
+      OuterOval();
       translate([0, (blockdepth + hoopthick)/2 + hinnerrad])
        square([blockwidth,
                blockdepth + hoopthick],
@@ -48,8 +58,7 @@ module Hoop(){
 
 module Positive(){
   difference(){
-    translate([0,0, -height/2])
-      linear_extrude(height=20)
+    VExtrude()
       Hoop();
 
     rotate([90,0,0])