chiark / gitweb /
light-bracket: wip, many hooks
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 3 Jul 2012 00:24:46 +0000 (01:24 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 3 Jul 2012 00:24:46 +0000 (01:24 +0100)
light-bracket.scad

index e5c0e8c86c60427dd7c36e7df9bf213af862c21d..7c97461b64cb690e4201b94b914e2d2a20d98b7a 100644 (file)
@@ -14,14 +14,29 @@ module mainhole() {
 }
 
 module hhook(extent) {
-       translate([ -remote_width/2 - hook_stem_thick, 0, -base_thick*2 ])
-               cube(center=false, size=[ hook_stem_thick+hook_hook_len, extent,
-                       base_thick*2 + mainhole_thick + hook_hook_thick ]);
+       difference() {
+               translate([ -hook_stem_thick, 0, -base_thick*2 ])
+                       cube(center=false, size=[ hook_stem_thick+15, 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) {
+       translate([ -remote_width/2, 0, 0 ])
+               hhook(extent);
+}
+
+module hhookbot(extent) {
+       rotate(a=90, v=[0,0,1]) hhook(extent);
 }
 
 module hstuff() {
-       translate([0,70,0]) hhook(15);
-       translate([0,20,0]) hhook(15);
+       translate([0,70,0]) hhookside(15);
+       translate([0,10,0]) hhookside(15);
+       translate([-10,0,0]) hhookbot(15);
 }
 
 module stuff() {
@@ -31,5 +46,6 @@ module stuff() {
 
 difference() {
        stuff();
-       # mainhole();
+       mainhole();
+       translate([0,0,-50 - base_thick]) cube(center=true,[300,300,100]);
 }