chiark / gitweb /
maglite-holder: torch
[reprap-play.git] / maglite-holder.scad
index 3c6b43bd1af025d2f1ba604b1cd638ab1211908a..25d7efaa30fd47cba669d5d9dd64a5689144a939 100644 (file)
@@ -1,8 +1,20 @@
 // -*- C -*-
 
+dxf_off = [ -40, -85 ];
+
+torch_lit_dia = 37.5;
+torch_big_dia = 56.5;
+torch_tot_len = 256;
+torch_big_len = 60;
+
 module Torch(){
-//  import(file="screw-recess-test-number-s3.dxf", convexity=10);
-  import(file="maglite-holder-torch-curve.dxf", convexity=10);
+  hull(){
+    rotate_extrude()
+      translate(dxf_off)
+      import(file="maglite-holder-torch-curve.dxf", convexity=10, center=true);
+  }
+  translate([0,0, -1])
+    cylinder(r=torch_lit_dia/2, h= torch_tot_len - torch_big_len + 1);
 }
 
-linear_extrude(100) Torch();
+Torch();