chiark / gitweb /
distort-stl: debugging
[reprap-play.git] / sprinkler-spike-receptacle.scad
index 8f04b8f418e843cad7930f046c3b549b5d5c874b..c1ac3b5fc54adc2eb4c3e7747ff4e5184282f60f 100644 (file)
@@ -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();