3 dxf_off = [ -40, -85 ];
11 torch_clear_below = 10;
22 brace = [ 40, 10, 20 ];
31 above = torch_big_len + torch_clear + torch_clear_below;
35 stem_below = stem_width/2;
37 stem_len = holes[1] - above + stem_below;
39 torch_out = stem_thick + torch_big_dia/2 + torch_out_more;
41 block_width = arm_width*2 + torch_big_dia;
43 block_out = torch_out + torch_big_dia/2/sqrt(2);
50 import(file="maglite-holder-torch-curve.dxf",
51 convexity=10, center=true);
54 cylinder(r=torch_lit_dia/2, h= torch_tot_len - torch_big_len + 1);
58 module ScrewHole(y, rot) {
59 translate([0,0, above -y]){
62 for (d= [-1,+1] * hole_slot/2) {
65 translate([0,0,-stem_thick*2])
66 cylinder(r= hole_dia/2, h= stem_thick*4);
73 module TorchMovement(){
74 // xxx needs torch increasing for slop
75 translate([0, -torch_out, 0]) {
76 translate([0, 0, -torch_recess])
79 linear_extrude(height= block_out)
80 projection() rotate([-90,0,0]) Torch();
87 translate([-stem_width/2, 0, -stem_len])
88 cube([stem_width, stem_thick, stem_len]);
89 translate([0,0, -block_thick]) hull(){
90 translate([-stem_width/2, 0, -brace[2]])
91 cube([stem_width, stem_thick, 1]);
92 translate([-brace[0]/2, 0, 0])
93 cube([brace[0], brace[1], 1]);
96 ScrewHole(holes[0], 90);
97 ScrewHole(holes[1], 0);
101 translate([-block_width/2, 0, -block_thick])
102 cube([block_width, block_out, block_thick]);
108 translate([0, -torch_out, 0])