chiark / gitweb /
maglite-holder: nice shape...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 31 Jan 2017 23:45:26 +0000 (23:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 31 Jan 2017 23:45:26 +0000 (23:45 +0000)
maglite-holder.scad

index bf78cd1296f70606bc501ffeae809581b5fa92a2..2210c9c4c5532a29caa7f59ead2e2f39db47cb75 100644 (file)
@@ -13,7 +13,7 @@ torch_clear_below = 10;
 stem_width = 20;
 stem_thick = 4;
 
-torch_recess = 15;
+torch_recess = 10;
 arm_width = 10;
 block_thick = 30;
 
@@ -48,6 +48,16 @@ module Torch(){
   }
 }
 
+module TorchMovement(){
+  translate([0, -torch_out, 0]) {
+    translate([0, 0, -torch_recess])
+      Torch();
+    rotate([90,0,0])
+      linear_extrude(height= block_out)
+      projection() rotate([-90,0,0]) Torch();
+  }
+}
+
 module Bracket(){
   difference(){
     mirror([0,1,0])
@@ -58,10 +68,8 @@ module Bracket(){
     mirror([0,1,0])
       translate([-block_width/2, 0, -block_thick])
       cube([block_width, block_out, block_thick]);
+    TorchMovement();
   }
-  for (out=[ torch_out, torch_out + block_out*2 ])
-    translate([ 0, -out, -torch_recess ])
-      Torch();
 }
 
 module Demo(){
@@ -71,3 +79,4 @@ module Demo(){
 }
 
 Demo();
+