chiark / gitweb /
trackpump-mutlihead-clip: commitid
[reprap-play.git] / trackpump-mutlihead-clip.scad
index fbf60bea521636446b644dfa929362c6e6b2072e..cebf159963563f79bfd2efc122655f3c22691b6d 100644 (file)
@@ -1,5 +1,7 @@
 // -*- C -*-
 
+include <commitid.scad>
+
 pump_main_dia = 38;
 pump_side_width = 5;
 pump_side_thick = 4;
@@ -42,7 +44,7 @@ module PumpSidePlan() {
     union(){
       intersection(){
        translate([-xm, 0]) circle(r=or);
-       translate([-(xm+or), -or]) square([xm+or, or*2]);
+//     translate([-(xm+or), -or]) square([xm+or, or*2]);
       }
     }
     translate([-xm-or, 0])
@@ -56,6 +58,7 @@ module PumpSideElevation(){
   x1 = x2 - pump_main_dia;
   x0 = x1 - pump_side_width;
   x2a = x2 - pump_protr_protr;
+  x4 = x2 + pump_side_width;
 
   z0 = 0;
   z1 = z0 - pump_side_thick;
@@ -73,16 +76,18 @@ module PumpSideElevation(){
     translate([x1,z2]) scale([1,arcy/arcx]) circle(r=arcx);
   }
 
-  translate([x2,z2a]) square([x3-x2, z0-z2a]);
+  translate([x2,z2a]) square([x4-x2, z0-z2a]);
 
   hull(){
-    translate([x2,z2a]) square([x3-x2, z2-z2a]);
+    translate([x2,z2a]) square([x4-x2, z2-z2a]);
     translate([x2a,z2b]) square([x3-x2a, z2a-z2b]);
   }
 }
 
 module PumpSide(){
   br = baseplate_width_rad;
+  brs = hose_side_stalk_width/2;
+  echo(brs);
 
   difference(){
     intersection(){
@@ -95,19 +100,29 @@ module PumpSide(){
          linear_extrude(height=200)
          PumpSidePlan();
        // baseplate
-       mirror([0,0,1]){
-         hull(){
-           translate([-xm, -br, 0])
-             cube([xm,
-                   br*2,
-                   pump_side_total_height]);
-         }
+       hull(){
+         mirror([0,0,1])
+           translate([-xm, -brs, 0])
+           cube([pump_main_dia/2 + pump_side_width,
+                 brs*2,
+                 1]);
+         translate([-xm, -br, -pump_side_total_height])
+           cube([xm,
+                 br*2,
+                 pump_protr_flat]);
        }
       }
     }
     translate([-(baseplate + pump_main_dia/2), 0,
                -(pump_side_thick + pump_side_height)])
       cylinder(r=pump_main_dia/2, h=200);
+    rotate([0,0,180])
+      mirror([0,0,1])
+      translate([-0,
+                -br,
+                pump_side_total_height])
+      Commitid_BestCount_M([baseplate + pump_protr_protr,
+                           br*2]);
   }
 }
 
@@ -152,6 +167,7 @@ module ClipPrint(){
 }
 
 //PumpSidePlan();
+//PumpSideElevation();
 //PumpSide();
 //HoseSide();
 //Clip();