chiark / gitweb /
velux-window-grip: wip attach
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 May 2014 14:24:17 +0000 (15:24 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 May 2014 14:24:17 +0000 (15:24 +0100)
velux-window-grip.scad

index 598b8a64b1b1ab4116b32af0582d5d89be8e45a6..63fe3ea43ba93080df5ce3212c994ccbf5c085ef 100644 (file)
@@ -2,6 +2,8 @@
 
 include <funcs.scad>
 
+// MainLoop
+
 main_thick = 3.3;
 main_in_dia = 28.9;
 
@@ -17,12 +19,34 @@ blhook_mid_rad = 3.5;
 
 width = 20;
 
+// Attach
+
+at_bolt_into = 13.0 + 0.5;
+at_tube_dia = 12.2 + 0.5;
+at_prong_minw = 4;
+at_rear_thick = 4.5;
+at_bolt_dia = 5 + 0.5;
+
+at_rear_width = at_tube_dia;
+at_stem_len = main_in_dia/2 * 0.3;
+
+at_prong_depth = at_bolt_into * 2;
+at_gap_width = at_tube_dia * 0.75;
+
 // computed
 
 mc_mid_rad = main_in_dia/2 + main_thick/2;
 
 mc_bl = circle_point([0,0], mc_mid_rad, 270-blhook_start_ang);
 
+at_block_x = at_tube_dia + at_prong_minw * 2;
+at_block_y = at_prong_depth + at_rear_thick;
+at_block_z = width;
+
+at_stem_yy = at_stem_len + mc_mid_rad;
+
+at_offset_y = at_block_y + at_stem_len + mc_mid_rad;
+
 $fs=0.05;
 
 horn_thick = main_thick;
@@ -80,5 +104,26 @@ module MainLoopTest(){
     MainLoop();
 }
 
-MainLoopTest();
+module Attach(){
+  difference(){
+    translate([0, at_block_y/2, 0])
+      cube(center=true, [at_block_x, at_block_y, at_block_z]);
+    translate([0, at_prong_depth/2-1, 0])
+      cube(center=true, [at_gap_width, at_prong_depth+2, at_block_z+1]);
+    translate([0,-1,0])
+      rotate([-90,0,0])
+      cylinder(r= at_tube_dia/2, h= at_prong_depth+1);
+    translate([-50, at_prong_depth-at_bolt_into, 0])
+      rotate([0,90,0])
+      cylinder(r= at_bolt_dia/2, h= 100);
+  }
+  difference(){
+    translate([0, at_block_y + at_stem_yy/2 - 0.1, 0])
+      cube(center=true, [at_tube_dia, at_stem_yy + 0.2, at_block_z]);
+    translate([0, at_offset_y, -50])
+      cylinder(r = mc_mid_rad, 100);
+  }
+}
+
+Attach();