chiark / gitweb /
earring-stand: toplevels
[reprap-play.git] / trackpump-mutlihead-clip.scad
index 2ae634d63b8eba85974fd1c765cc309ee285303e..4d7ec02f3ca3e4da8c776231516e6b4e2f9f3aea 100644 (file)
@@ -7,9 +7,15 @@ pump_shaft_dia = 14;
 baseplate = 4;
 
 pump_protr_flat = 3;
-pump_protr_slope = 1.0;
+pump_protr_slope = 0.9;
+
+hose_inner_dia = 20;
+hose_aperture = 11;
+hose_side_width = 5;
+hose_base_offset = 30;
+
+hose_side_thick = 5;
 
-// need reconfirm:
 pump_protr_protr = 3;
 pump_side_height = 20;
 
@@ -84,6 +90,47 @@ module PumpSide(){
   }
 }
 
+module HoseSidePlan(){
+  ro = hose_inner_dia/2 + hose_side_width;
+  ri = (hose_inner_dia/2);
+
+  apx = sqrt( ri*ri - (hose_aperture*hose_aperture)/4 );
+  apsq = hose_base_offset + apx - hose_aperture/2;
+  echo(apx,apsq);
+
+  difference(){
+    hull(){
+      translate([-1, -ro]) square([1, ro*2]);
+      translate([hose_base_offset, 0]) circle(r= ro);
+    }
+    translate([hose_base_offset, 0]) circle(r= hose_inner_dia/2);
+    translate([apsq, 0])
+      rotate(-45)
+      square([50,50]);
+  }
+
+  //%translate([hose_base_offset + apx, 0]) square([50,50]);
+  //%square(center=true, [100, hose_aperture]);
+}
+
+module HoseSide(){
+  mirror([0,0,1])
+    linear_extrude(height=hose_side_thick)
+    HoseSidePlan();
+}
+
+module Clip(){
+  PumpSide();
+  HoseSide();
+}
+
+module ClipPrint(){
+  rotate([180,0,0])
+    Clip();
+}
+
 //PumpSidePlan();
-//PumpSideElevation();
-PumpSide();
+//PumpSide();
+//HoseSide();
+//Clip();
+ClipPrint();