chiark / gitweb /
poster-tube-lid: sloping bottom of catch tip
[reprap-play.git] / poster-tube-lid.scad
index ad563a96976e4774954ff4a33e6192740a863a57..d4f2ccf12318579e7b55fb54db6921b8dde39a83 100644 (file)
@@ -213,6 +213,7 @@ cppb = bayo_g + [1,-1] * catch_pin_slop + [1,0] * cpp_adj;
 cppd = [ bayo_n[0]
         - catch_pin_slop - catch_pin_slop_x_extra,
         -catch_stalk_above_gap ];
+cppi = [ cppa[0], cppd[1] ];
 cppc = [ cppd[0], cppb[1] ];
 cpph = cppd + [0,-1] * catch_stalk_h;
 cppe = cppd + [0,-1] * (catch_knob_above_gap + catch_knob_dia/2);
@@ -610,7 +611,8 @@ module CatchAssemblyCoreProfile(){
            ]);
 }
 
-module CatchTipProfile(){
+module CatchTipProfile(dy){
+  ddy = [0,dy];
   intersection(){
     translate(cppF){
       difference(){
@@ -619,9 +621,8 @@ module CatchTipProfile(){
       }
     }
     polygon([ cppa,
-             cppg,
-             cpph,
-             cppd,
+             cppi + ddy,
+             cppd + ddy,
              cppc,
              cppb ]);
   }
@@ -629,7 +630,8 @@ module CatchTipProfile(){
 
 module CatchHeadProfile(){
   polygon([ cppd,
-           cppg,
+           cppd,
+           cppi,
            cppf,
            cppe,
            cpph ]);
@@ -640,8 +642,12 @@ module CatchCore(){ /////toplevel
   linear_extrude(height=catch_strap_thick, convexity=10)
     CatchAssemblyCoreProfile();
 
-  linear_extrude(height=catch_tip_th, convexity=10)
-    CatchTipProfile();
+  hull(){
+    linear_extrude(height=catch_head_th, convexity=10)
+      CatchTipProfile(0);
+    linear_extrude(height=catch_tip_th, convexity=10)
+      CatchTipProfile(catch_tip_th - catch_head_th);
+  }
 
   linear_extrude(height=catch_head_th, convexity=10)
     CatchHeadProfile();