chiark / gitweb /
cable-splice-clamp: other half
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2016 17:30:47 +0000 (17:30 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2016 17:30:47 +0000 (17:30 +0000)
cable-splice-clamp.scad

index fab44d483f7aa8af13f9367bc53469f4fce7655c..709965ae3bef35d59d1b61ed50dc05ac8a96ac32 100644 (file)
@@ -63,7 +63,7 @@ basew = base_r * rnom;
 
 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();