separate data into *-data.scad for 3d models
[challenge-bot] / 3d-printables / angle-bracket.scad
index fdd2b50eb095d0e7c4663c94daf34453d1d4e0c9..788e6b4e271757a17db6eedab92b79a00f5dea18 100644 (file)
@@ -4,26 +4,6 @@
 // https://gitorious.org/ozzloy/challenge-bot
 // https://github.com/waynegramlich/challenge-bot
 
-// this needs to be updated with actual measurements
-length=5;
-width=5;
-thickness=1;
-
-module plate(length, width, thickness){
-  difference(){
-    cube([length, width, thickness]);
-    translate([0, 0, -0.05 * thickness])
-      scale([1, 1, 1.1])
-        translate([length / 2, (width + thickness) / 2, 0])
-          cylinder(h = thickness, r = 0.5, $fn = 20);}}
-
-
-module bracket (length, width, thickness){
-  translate ([0, thickness/2, thickness/2]){
-    translate([0, - thickness / 2, - thickness / 2])
-      plate(length, width, thickness);
-    rotate([90,0,0])
-      translate([0, - thickness / 2, - thickness / 2])
-        plate(length, width, thickness);}}
+include <angle-bracket-data.scad>
 
 bracket(length, width, thickness);