chiark / gitweb /
crossbar-computer-led-mount: registration lug
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Jun 2013 11:06:54 +0000 (12:06 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Jun 2013 11:06:54 +0000 (12:06 +0100)
crossbar-computer-led-mount.scad

index 4bc474a..c3fc8d1 100644 (file)
@@ -37,6 +37,9 @@ lid_wall_thick = 1.6;
 lid_slop = 0.75;
 base_ctie_anchor = 5;
 tube_ctie_anchor = 5;
+protrusion_size = 2;
+protrusion_none_frontback = 10;
+protrusion_slop = 0.5;
 
 //--- tests ---
 
@@ -86,6 +89,8 @@ base_width = 0.7 * crossbar_dia;
 base_backfront = backfront_mate_extra - tower_rearwall_y;
 base_height = led_tip_height_above_crossbar - tower_height_contribution;
 
+protrusion_frontback = base_backfront - protrusion_none_frontback;
+
 echo(tower_height_contribution, base_height);
 
 module TowerWallCrossSection(){
@@ -193,7 +198,9 @@ module Tower(){ ////toplevel
       cube([50, lidclamp_ctie_width, lidclamp_ctie_thick], center=true);
     translate([0,
                (backfront_mate_extra+tower_rearwall_y)/2,
-               -tower_base_height/2])
+               -tower_base_height
+              + max(protrusion_size + protrusion_slop + 0.1,
+                    base_ctie_anchor_eff)])
       cube([50, base_ctie_width, base_ctie_thick], center=true);
     for (mir=[0,1])
       mirror([mir,0,0]) {
@@ -203,6 +210,8 @@ module Tower(){ ////toplevel
                cableclamp_ctie_width],
               center=true);
       }
+    translate([0, tower_rearwall_y, -tower_base_height])
+      BaseRegistrationProtrusion(protrusion_slop);
   }
 }
 
@@ -230,6 +239,18 @@ module LidT(){ ////toplevel
   rotate([180,0,0]) Lid();
 }
 
+module BaseRegistrationProtrusion(extra){
+  size = protrusion_size + extra;
+  translate([0, base_backfront/2, 0]){
+    hull(){
+      translate([0,0, -0.5])
+       cube([protrusion_size*2, protrusion_frontback, 1.0], center=true);
+      translate([0, 0, protrusion_size-0.5])
+       cube([0.05, protrusion_frontback-protrusion_size*2, 1.0], center=true);
+    }
+  }
+}
+
 module Base(){ ////toplevel
   difference(){
     mirror([0,0,1]){
@@ -248,6 +269,7 @@ module Base(){ ////toplevel
       rotate([-90,0,0])
       cylinder(r=crossbar_dia/2, h=101);
   }
+  BaseRegistrationProtrusion(0.0);
 }
 
 module BaseT(){ ////toplevel
@@ -265,8 +287,9 @@ module Demo(){
 //TowerWallFrontEdge();
 //TowerMainHull();
 //LidT();
-//Tower();
+Tower();
 //Lid();
+//BaseRegistrationProtrusion();
 //Base();
 //BaseT();
-Demo();
+//Demo();