chiark / gitweb /
cable-splice-clamp: length again
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2016 17:27:48 +0000 (17:27 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2016 17:27:48 +0000 (17:27 +0000)
partially reverts 80554664

cable-splice-clamp.scad

index 55f219a..92213cf 100644 (file)
@@ -85,5 +85,42 @@ module CrossSectionDemo(){ ////toplevel
   }
 }
 
+strap_width = 4 + 0.5;
+total_len = 70;
+
+strap_count = 2;
+
+strap_wall_h = 1.5;
+strap_wall_l = 2.0;
+
+writing_dx = total_len / 3;
+writing_dy = basew*2;
+
+module HalfClamp(){ ////toplevel
+  difference(){
+    rotate([90,0,0])rotate([0,90,0]){
+      linear_extrude(height=total_len)
+       CrossSection();
+
+      for (i=[0 : strap_count]){
+       if (i*2 != strap_count) {
+         translate([0, 0,
+                    total_len * (i + 0.5) / (strap_count + 1)])
+           for (m=[0,1]){
+             mirror([0,0,m])
+               translate([0,0, strap_width/2])
+               linear_extrude(height=strap_wall_l)
+               CrossSection(strap_wall_h);
+           }
+       }
+      }
+    }
+
+    translate([0, -basew, top])
+      Commitid_BestCount([writing_dx, writing_dy]);
+  }
+}
+
 //CrossSection();
-CrossSectionDemo();
+//CrossSectionDemo();
+HalfClamp();