chiark / gitweb /
poster-tube-lid: StrapHoop: add to CoverTest1 properly
[reprap-play.git] / poster-tube-lid.scad
index 433f46693d8cdbae621043b2e261242d097c8f93..5d237f24270d6df4d6c4b4c6ed56a1145a384d9c 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,6 +305,10 @@ module Cover(){ ////toplevel
       }
     }
   }
+  translate(strap_hoop_thick * [-0.5, 0, +1])
+    translate([handling_dia/2, 0, -side_height])
+    rotate([0,180,0]) rotate([0,0,90])
+    StrapHoop();
 }
 
 module SavingHole(){
@@ -334,12 +345,19 @@ module CoverTest2(){ ////toplevel
 module CoverTest1(){ ////toplevel
   difference(){
     CoverTest2();
-    for (r= [ 40, 147 ]){
-      rotate([0,0, r]){
-       translate([0,0, -10]) {
-         cube([ main_dia*3, main_dia * .55, 18], center=true);
+    difference(){
+      for (r= [ 40, 147 ]){
+       rotate([0,0, r]){
+         translate([0,0, -10]) {
+           cube([ main_dia*3, main_dia * .55, 18], center=true);
+         }
        }
       }
+      translate([ 50, 0, 0 ])
+       cube([ 100,
+              strap_hoop_inside + strap_hoop_thick*2 + 1,
+              100 ],
+            center=true);
     }
   }
 }