chiark / gitweb /
cable-splice-clamp: HalfClampPrint
[reprap-play.git] / cable-splice-clamp.scad
index 92213cf39b2a6c5be883e718d9281459b7ac3708..bed9edb9070c71324d0d0640bbbcf0b1f43e49fe 100644 (file)
@@ -2,7 +2,7 @@
 
 include <commitid.scad>
 
-rnom = 9;
+rnom = 7.5 / 2;
 
 // alpha is slope angle, which is half of inner concave angle that
 //  wire sits in
@@ -61,9 +61,9 @@ wall_x_r = wall_r / tan(90-alpha);
 top = top_r * r1;
 basew = base_r * rnom;
 
-echo(r0,r1, "ratio",r1/r0);
+echo("dias", r0*2, r1*2, "ratio",r1/r0);
 
-module CrossSection(plus=0) {
+module CrossSectionHalf(plus=0) {
   difference(){
     polygon([[-0.1,                                y_T_r * r0],
             [x_T_r * r0,                          y_T_r * r0],
@@ -76,6 +76,13 @@ module CrossSection(plus=0) {
   }
 }
 
+module CrossSection(plus=0) {
+  for (m=[0,1]) {
+    mirror([m,0])
+      CrossSectionHalf(plus);
+  }
+}
+
 module CrossSectionDemo(){ ////toplevel
   color("black") CrossSection(2);
   CrossSection();
@@ -121,6 +128,12 @@ module HalfClamp(){ ////toplevel
   }
 }
 
+module HalfClampPrint(){ ////toplevel
+  rotate([180,0,0])
+    HalfClamp();
+}
+
 //CrossSection();
 //CrossSectionDemo();
-HalfClamp();
+//HalfClamp();
+HalfClampPrint();