chiark / gitweb /
light bracket: sloping hooks
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Jul 2012 16:59:02 +0000 (17:59 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Jul 2012 16:59:02 +0000 (17:59 +0100)
light-bracket.scad

index f64e81c..90c5427 100644 (file)
@@ -23,17 +23,39 @@ module mainhole() {
 }
 
 module hhook(extent) {
-       difference() {
-               translate([ -hook_stem_thick, 0, -base_thick*2 ])
-                       cube(center=false,
-                               size=[
-                       hook_stem_thick+base_margin+base_edgewidth-1,
-                       extent,
-                       base_thick*2 + mainhole_thick + hook_hook_thick
-                                       ]);
-               translate([hook_hook_len, -5, 0])
-                        cube(center=false, size=[ 20, extent+10, 30 ]);
-       }
+       translate([ -hook_stem_thick, 0, -base_thick*2 ])
+               cube(center=false,
+                       size=[
+                               hook_stem_thick,
+                               extent,
+                               base_thick*2 + mainhole_thick + hook_hook_thick
+                       ]);
+       translate([ -hook_stem_thick, 0, -base_thick*2 ])
+               cube(center=false,
+                       size=[
+                               hook_stem_thick+base_margin+base_edgewidth-1,
+                               extent,
+                               base_thick*2
+                       ]);
+       translate([ -hook_stem_thick+1.0, 0, mainhole_thick ])
+               rotate(v=[0,1,0], a=-30)
+               cube(center=false,
+                       size=[
+                               3,
+                               extent,
+                               hook_hook_thick
+                       ]);
+       //difference() {
+       //      #translate([ -hook_stem_thick, 0, -base_thick*2 ])
+       //              cube(center=false,
+       //                      size=[
+       //              hook_stem_thick+base_margin+base_edgewidth-1,
+       //              extent,
+       //              base_thick*2 + mainhole_thick + hook_hook_thick
+       //                              ]);
+       //      translate([hook_hook_len, -5, 0])
+       //               cube(center=false, size=[ 20, extent+10, 30 ]);
+       //}
 }
 
 module hhookside(extent) {