chiark / gitweb /
brompton-computer-guard: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 11 May 2014 22:04:40 +0000 (23:04 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 11 May 2014 22:04:40 +0000 (23:04 +0100)
brompton-computer-guard.scad

index b37bd9d2c5b5cda3c5959db7478a094f5d10b745..d7f8a26b3b8d517307d2519755a92c7a6af000d6 100644 (file)
@@ -24,6 +24,8 @@ attach_straight_len =
   attach_inrad + attach_tube_dia + attach_hole_dist + attach_hole_dia/2
   - attach_w / 2 + attach_hole_dist;
 
+attach_down = tube_dia + attach_hole_dist;
+
 module RearSideTemplate(){
   polygon([[0.1,0],
           [-base_len,0],
@@ -50,6 +52,11 @@ module AttachTemplate(){
   }
 }
 
+module BodyPositive(){
+  color("blue") linear_extrude(height=60) RearSideTemplate();
+  translate([0,0,-attach_down]) linear_extrude(height=100) AttachTemplate();
+}
+
 module Tube(){
   %translate([attach_cx, -attach_cdy, -20]) {
     rotate_extrude(convexity=10) {
@@ -78,7 +85,6 @@ module Bolts(){
   }
 }
 
-color("blue") RearSideTemplate();
-AttachTemplate();
 Tube();
 Bolts();
+BodyPositive();