chiark / gitweb /
light-bracket: stub for test
[reprap-play.git] / light-bracket.scad
index 73edbe7ba6118dbae49bf36f7f6acd34dc6ca487..f97611fc8885135d6a60eb548c106fddf0a1054f 100644 (file)
@@ -48,16 +48,30 @@ module hstuff() {
        translate([-10,0,0]) hhookbot(15);
 }
 
+module slashes() {
+       for (y=[-35 : 35 : +40])
+               translate([0,y,0])
+                       rotate(v=[0,0,1],a=45)
+                               cube(center=true, [ 5,200,200 ]);
+}
+
 module base() {
        translate([ 0, base_height/2 + base_margin, -base_thick/2 ])
-       difference() {
+       intersection() {
                cube(center=true,
                        [ base_width, base_height, base_thick+10 ]);
-               cube(center=true,
-                       [ base_width - base_edgewidth*2,
-                         base_height - base_edgewidth*2,
-                         base_thick + 15 ]);
-               
+               union() {
+                       difference() {
+                               cube(center=true, [ 200,200,200 ]);
+                               cube(center=true,
+                                       [ base_width - base_edgewidth*2,
+                                         base_height - base_edgewidth*2,
+                                         base_thick + 15 ]);
+                               
+                       }
+                       slashes();
+                       mirror([1,0,0]) slashes();
+               }
        }
 //     translate([-base_width/2, base_margin, -base_thick*2])
 //             cube(center=false, [base_width,base_height,base_thick+10]);
@@ -81,10 +95,19 @@ module screwhole(holedia, csdia) {
        cylinder(h=100, r=csdia/2);
 }
 
-difference() {
-       stuff();
-       mainhole();
-       for (y=screw_ys) translate([0, y, -base_thick+2]) screwhole(4,10);
-       translate([0,0,-50 - base_thick])
-               cube(center=true,[300,300,100]); // print bed
+module bracket() {
+       // this is the actual thing we want
+       difference() {
+               stuff();
+               mainhole();
+               for (y=screw_ys) translate([0, y, -base_thick+2])       
+                       screwhole(4,10);
+               translate([0,0,-50 - base_thick])
+                       cube(center=true,[300,300,100]); // print bed
+       }
+}
+
+intersection() {
+       bracket();
+       cube(center=true, [100,55,100]);
 }