chiark / gitweb /
poster-tube-lid: catch: Colourise CatchDemo
[reprap-play.git] / sprinkler-spike-receptacle.scad
index 23a6b57..c1ac3b5 100644 (file)
@@ -20,8 +20,8 @@ mount_hole_th = 2.5;
 
 strap_height = main_height * 0.5;
 
-strap_width = 6.0;
-strap_thick = 3.0;
+strap_width = 5.5;
+strap_thick = 2.5;
 strap_around = 2.5;
 strap_fixing_height = 4.0;
 strap_fixing_slope = 1.0;
@@ -98,29 +98,31 @@ module FixingsPositive(){
           mount_height ]);
 
   // strap
-  translate([main_width/2, 0, strap_height]) {
-    hull(){
-      translate([ -strap_around,
-                 -pos_web_thick/2,
-                 -(strap_thick + strap_around) / strap_fixing_slope ])
-       cube([ strap_around,
-              pos_web_thick/2 - strap_width/2,
-              0.5 ]);
-      translate([ -strap_around,
-                 -(strap_around + strap_width/2),
-                 0 ])
-       cube([ strap_around*2 + strap_thick,
-              strap_around,
-              strap_fixing_height ]);
+  for (m=[0,1]) mirror([0,m,0]) {
+      translate([main_width/2, 0, strap_height]) {
+       hull(){
+         translate([ -strap_around,
+                     -pos_web_thick/2,
+                     -(strap_thick + strap_around) / strap_fixing_slope ])
+           cube([ strap_around,
+                  pos_web_thick/2 - strap_width/2,
+                  0.5 ]);
+         translate([ -strap_around,
+                     -(strap_around + strap_width/2),
+                     0 ])
+           cube([ strap_around*2 + strap_thick,
+                  strap_around,
+                  strap_fixing_height ]);
+       }
+       mirror([0,1,0])
+         translate([ strap_thick,
+                     -strap_width/2,
+                     0 ])
+         cube([ strap_around,
+                strap_around + strap_width,
+                strap_fixing_height ]);
+      }
     }
-    mirror([0,1,0])
-      translate([ strap_thick,
-                 -strap_width/2,
-                 0 ])
-      cube([ strap_around,
-            strap_around + strap_width,
-            strap_fixing_height ]);
-  }
 }
 
 module FixingsNegative(){
@@ -185,5 +187,14 @@ module Tests(){
   MainFitTest();
 }
 
+module StrapFixingTest(){
+  intersection(){
+    Main();
+    translate([ -10, -10, 40 ])
+      cube([ 20, 40, 15 ]);
+  }
+}
+
 //Tests();
+//StrapFixingTest();
 Main();