chiark / gitweb /
crossbar-computer-led-mount: fixes
[reprap-play.git] / crossbar-computer-led-mount.scad
index c3fc8d18b72bc7b4a2bf6177060f5ed026a11838..21200c038957f0a1d273200f58d4e8eada129d5a 100644 (file)
@@ -12,7 +12,8 @@ backfront_space_inside = 12;
 width_space_inside = 10;
 
 backfront_mate_size = 25;
-tower_frontheight = 20;
+tower_frontheight = 15;
+tower_base_height = 15;
 tower_slot_width = 3;
 
 cableclamp_ctie_width = 3 + 0.5;
@@ -31,15 +32,17 @@ tube_ctie_thick = 3 + 0.5;
 
 tower_over_angle = 45;
 tower_wall_thick = 1.6;
-tower_base_height = 10;
 tower_forehead_angle = 30;
 lid_wall_thick = 1.6;
 lid_slop = 0.75;
+//cableclamp_ctie_anchor = 5;
+lidclamp_cableclamp_ctie_between = 0;
 base_ctie_anchor = 5;
 tube_ctie_anchor = 5;
 protrusion_size = 2;
 protrusion_none_frontback = 10;
 protrusion_slop = 0.5;
+cableclamp_ctie_z = tower_frontheight/2;
 
 //--- tests ---
 
@@ -181,9 +184,9 @@ module TowerMain(){
 
 module LedHole(){
   translate([0, led_head_y, led_head_z])
-    rotate([90 + led_angle])
+    rotate([90 - led_angle])
     translate([0,0,-10])
-    cylinder(r=led_dia/2, h=led_depth+0.1+10, $fn=30);
+    cylinder(r=led_dia/2, h=led_depth+0.1+10, $fn=31);
 }
 
 module Tower(){ ////toplevel
@@ -193,8 +196,9 @@ module Tower(){ ////toplevel
     // passages for cable ties
     translate([0,
               tower_rearwall_y/2,
-              tower_frontheight/2
-              + cableclamp_ctie_width/2 + lidclamp_ctie_thick/2])
+              cableclamp_ctie_z
+              + cableclamp_ctie_width/2 + lidclamp_ctie_thick/2
+              + lidclamp_cableclamp_ctie_between])
       cube([50, lidclamp_ctie_width, lidclamp_ctie_thick], center=true);
     translate([0,
                (backfront_mate_extra+tower_rearwall_y)/2,
@@ -202,9 +206,17 @@ module Tower(){ ////toplevel
               + max(protrusion_size + protrusion_slop + 0.1,
                     base_ctie_anchor_eff)])
       cube([50, base_ctie_width, base_ctie_thick], center=true);
+//    for (extra_y=[0, -(cableclamp_ctie_thick + cableclamp_ctie_anchor)]) {
+//      translate([-tower_width/2,
+//              -cableclamp_ctie_thick/2 - tower_wall_thick + extra_y,
+//              cableclamp_ctie_z])
+//     cube([tower_wall_thick+2,
+//           cableclamp_ctie_thick,
+//           cableclamp_ctie_width], center=true);
+//    }
     for (mir=[0,1])
-      mirror([mir,0,0]) {
-       translate([tower_width/4, 20, tower_frontheight/2])
+     mirror([mir,0,0]) {
+       translate([tower_width/4, 20, cableclamp_ctie_z])
          cube([cableclamp_ctie_thick,
                tower_wall_thick*2+1+40,
                cableclamp_ctie_width],
@@ -251,7 +263,7 @@ module BaseRegistrationProtrusion(extra){
   }
 }
 
-module Base(){ ////toplevel
+module Base(){
   difference(){
     mirror([0,0,1]){
       hull(){
@@ -261,9 +273,9 @@ module Base(){ ////toplevel
          cube([base_width, base_backfront, crossbar_dia/2]);
       }
     }
-    translate([-50, base_backfront/2, -base_ctie_anchor_eff])
+    translate([0, base_backfront/2, -base_ctie_anchor_eff])
       cube([100, base_ctie_width, base_ctie_thick], center=true);
-    translate([-50, base_backfront/2, -base_height + tube_ctie_anchor_eff])
+    translate([0, base_backfront/2, -base_height + tube_ctie_anchor_eff])
       cube([100, tube_ctie_width, tube_ctie_thick], center=true);
     translate([0, -1, -(base_height + crossbar_dia/2)])
       rotate([-90,0,0])
@@ -278,6 +290,7 @@ module BaseT(){ ////toplevel
 
 module Demo(){
   Tower();
+  %Lid();
   translate([0,0, 25]) Lid();
   translate([0, tower_rearwall_y, -(tower_base_height+5)]) Base();
 }
@@ -287,7 +300,7 @@ module Demo(){
 //TowerWallFrontEdge();
 //TowerMainHull();
 //LidT();
-Tower();
+//Tower();
 //Lid();
 //BaseRegistrationProtrusion();
 //Base();