shaftz = cubez;
-tests = [[4 + 0.5, 10 + 1.0]];
+// shaftdia recessdia
+tests = [[2 + 0.5, 6 + 1.0, 0, 0 ],
+ [3 + 0.5, 9 + 1.0, 0, 10 ],
+ [4 + 0.5, 10 + 1.0, 0, 25 ],
+ [5 + 0.5, 10 + 1.0, 15, 5 ],
+ [6 + 0.5, 12 + 1.0, 15, 20 ]];
+
+last_test = tests[len(tests)-1];
+
+blockminx = -5;
+blockminy = -5;
+blockmaxx = 25;
+blockmaxy = 20;
cubexy = 20;
}
}
+module Block(){
+ translate([blockminx, blockmaxx, 0])
+ cube([blockmaxx-blockminx, blockmaxy-blockminy, cubez]);
+}
+
module Test(){
difference(){
- translate([-cubexy/2, -cubexy/2, 0])
- cube([cubexy,cubexy,cubez]);
+ Block();
+ union(){
+ for (t = tests) {
+ RecessedScrewCutout(t[0],t[1], shaftz+1);
+ }
+ }
}
}
-module Hole(){
- RecessedScrewCutout(tests[0][0],
- tests[0][1],
- shaftz+1);
+module Holes(){
+ for (t = tests) {
+ translate([t[2], t[3], 0])
+ RecessedScrewCutout(t[0],t[1], shaftz+1);
+ }
+}
+
+module Demo(){
+ Block();
+ %Holes();
}
+Demo();
+
//Test();
-Hole();
+//Hole();
+//Holes();