chiark / gitweb /
poster-tube-lid: sort out StrapHoop
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 17 Oct 2017 22:26:12 +0000 (23:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 17 Oct 2017 22:26:12 +0000 (23:26 +0100)
poster-tube-lid.scad

index 659a023a0725592a5bb6c1453e77b3d0eb61dde0..ee04e76a46531c770272142b88145a3e5cee5273 100644 (file)
@@ -55,6 +55,7 @@ jig_mark = 5;
 strap_hoop_thick = 6;
 strap_hoop_inside = 10;
 strap_hoop_strlen = 10;
+strap_hoop_elevation = 45;
 
 // calculated
 
@@ -173,23 +174,29 @@ module StrapHoopProfile(){
 
 module StrapHoop(){ ////toplevel
   bigrad = strap_hoop_inside + strap_hoop_thick/2;
-  extralen = strap_hoop_thick;
-
-  for (x= [ -1, +1 ] * bigrad) {
-    translate([x, -extralen, 0])
-      rotate([-90,0,0])
-      linear_extrude(height= extralen + strap_hoop_strlen + 0.1,
-                    convexity=10)
-      StrapHoopProfile();
-  }
-  translate([0, strap_hoop_strlen, 0]){
-    intersection(){
-      rotate_extrude(convexity=10)
-       translate([bigrad, 0,0])
-       StrapHoopProfile();
-      translate([0,50,0])
-       cube([100,100,100], center=true);
+  extralen = strap_hoop_thick * 5;
+
+  intersection(){
+    rotate([strap_hoop_elevation, 0,0]){
+      for (x= [ -1, +1 ] * bigrad) {
+       translate([x, -extralen, 0])
+         rotate([-90,0,0])
+         linear_extrude(height= extralen + strap_hoop_strlen + 0.1,
+                        convexity=10)
+         StrapHoopProfile();
+      }
+      translate([0, strap_hoop_strlen, 0]){
+       intersection(){
+         rotate_extrude(convexity=10)
+           translate([bigrad, 0,0])
+           StrapHoopProfile();
+         translate([0,50,0])
+           cube([100,100,100], center=true);
+       }
+      }
     }
+    translate([0, 50, 0])
+      cube(100, center=true);
   }
 }
 
@@ -298,9 +305,9 @@ module Cover(){ ////toplevel
       }
     }
   }
-  translate([handling_dia/2, 0, -side_height])
-    rotate([0,0,-90])
-    rotate([-45, 0,0])
+  translate(strap_hoop_thick * [-0.5, 0, +1])
+    translate([handling_dia/2, 0, -side_height])
+    rotate([0,180,0]) rotate([0,0,90])
     StrapHoop();
 }