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

index 2708722..2c591dc 100644 (file)
@@ -4,29 +4,32 @@ remote_thick=6.8;
 mainhole_thick=remote_thick+1;
 hook_width=1.5;
 hook_height=1.5;
+hook_thick=1.5;
+hook_hook=2.5;
+base_thick=10;
 
-module hmainhole() {
-       cube(center=0,size=[ remote_width/2, remote_height, mainhole_thick ]);
+module mainhole() {
+       translate([ -remote_width/2, 0, 0 ])
+       cube(center=false,
+               size=[ remote_width, remote_height, mainhole_thick ] );
 }
 
 module hhook(extent) {
-       translate([ -remote_width/2, 0, mainhole_thick/2 ])
-               cube(center=true, size=[ hook_width, extent,
-                       remote_thick+hook_height ]);
+       translate([ -remote_width/2 - hook_thick, 0, -base_thick*2 ])
+               cube(center=false, size=[ hook_thick+hook_hook, extent,
+                       base_thick*2 + mainhole_thick + hook_height ]);
 }
 
-module hstuff() {
+module stuff() {
        translate([0,50,0]) hhook(10);
 }
 
-module hobject() {
-       difference() {
-               hstuff();
-               # hmainhole();
-       }
-}
+//     mirror([1,0,0]){
+//     hobject();
+//}
+//}
 
-mirror([1,0,0]){
-       hobject();
+difference() {
+       stuff();
+       # mainhole();
 }
-//hobject();