//---------- plates and the fixing holes ----------
+module AtPlateFixings() {
+ n_x = floor((box_x / fixing_pitch - 1.0) / 2);
+ n_y = floor((box_y / fixing_pitch - 1.0) / 2);
+
+ for (xi=[
+ for (xi= [-n_x : n_x + 1])
+ xi - 0.5
+ ])
+ for (yi=[-n_y : n_y])
+ if (!( yi >= -3 && yi < 2 ))
+ if (( n_y - abs(yi) ) + ( n_x - abs(xi) ) > -1.25)
+
+ translate(fixing_pitch * [xi, yi, 0]) {
+ children();
+ }
+}
+
module FullPlate(right) { ////toplevel
render() union() {
difference(){
DriverHandlePositive();
}
-module AtPlateFixings() {
- n_x = floor((box_x / fixing_pitch - 1.0) / 2);
- n_y = floor((box_y / fixing_pitch - 1.0) / 2);
-
- for (xi=[
- for (xi= [-n_x : n_x + 1])
- xi - 0.5
- ])
- for (yi=[-n_y : n_y])
- if (!( yi >= -3 && yi < 2 ))
- if (( n_y - abs(yi) ) + ( n_x - abs(xi) ) > -1.25)
-
- translate(fixing_pitch * [xi, yi, 0]) {
- children();
- }
-}
-
//---------- RatchetHandle ----------
module RatchetHandlePositive() { ////toplevel