chiark / gitweb /
crossbar-computer-led-mount: TowerMain done
[reprap-play.git] / crossbar-computer-led-mount.scad
index b86b4b974801adc53433fe226062f7b7be0c0b1e..bce69402a73deaeebf1ffe2817c83dab89a4223a 100644 (file)
@@ -11,6 +11,8 @@ backfront_space_inside = 12;
 
 backfront_mate_size = 25;
 tower_frontheight = 20;
+tower_width = 18;
+tower_slot_width = 3;
 
 // tuning
 
@@ -108,12 +110,35 @@ module TowerRearWallCrossSection(){
   }
 }
 
-module TowerDemo(){
+
+module TowerCrossSectionDemo(){
   %TowerWallCrossSection();
   //TowerBulkCrossSection();
   TowerRearWallCrossSection();
 }
 
-TowerDemo();
+module TowerMain(){
+  for (mir=[0,1])
+    mirror([mir,0,0]) rotate([90,0,-90]) {
+      translate([0,0, tower_width/2-tower_wall_thick])
+       linear_extrude(height=tower_wall_thick)
+       TowerWallCrossSection();
+      translate([0,0,-1])
+       linear_extrude(height=tower_width/2+0.9)
+       TowerBulkCrossSection();
+      translate([0,0, tower_slot_width/2])
+       linear_extrude(height=(tower_width - tower_slot_width)/2 - 0.2)
+       TowerRearWallCrossSection();
+    }
+}
+
+module Tower(){
+  difference(){
+    TowerMain();
+  }
+}
+
+//TowerCrossSectionDemo();
 //TowerWallSomeEdge(false);
 //TowerWallFrontEdge();
+Tower();