chiark / gitweb /
crossbar-computer-led-mount: TowerMain done
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Jun 2013 23:33:12 +0000 (00:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Jun 2013 23:33:12 +0000 (00:33 +0100)
crossbar-computer-led-mount.scad

index b86b4b9..bce6940 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();