chiark / gitweb /
pull-cord-keeper: hull the RoundEdges
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 31 Aug 2015 22:08:56 +0000 (23:08 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 31 Aug 2015 22:08:56 +0000 (23:08 +0100)
pull-cord-keeper.scad

index b23ac47c30a2f2faa6578ea9b755467154662221..ca05b9d47b7a3c731316d5d71692188b7b5ff6f0 100644 (file)
@@ -64,12 +64,14 @@ module RoundEdges(){
       OuterOval();
 
     for (xi=[-1,1]) {
-      for (yi=[-1,1]) {
-       translate([xi * (hcentredist/2 + hinnerrad),
-                  houterrad,
-                  yi * (height/2 - roundedgedia / 4 * sqrt(2))])
-         rotate([90,0,0])
-         cylinder(r=roundedgedia/2, h=houterrad*2, $fn=20);
+      hull(){
+       for (yi=[-1,1]) {
+         translate([xi * (hcentredist/2 + hinnerrad),
+                    houterrad,
+                    yi * (height/2 - roundedgedia / 4 * sqrt(2))])
+           rotate([90,0,0])
+           cylinder(r=roundedgedia/2, h=houterrad*2, $fn=20);
+       }
       }
     }
   }