Parametrize the box fixation tabs

This is the last part to make the box fully scalable. Now if you double
every parameter, the box doubles in all dimensions. The panel features
are not changed, however. That's up to you to fix.

The tab cutouts are now scaled off of the screw hole size, since that
fixes the diameter of the tab.

I've also added an OuterMargin which adjusts the spacing you need
between the tab and the box wall. This is a property of your printer,
and shouldn't be changed when you scale other aspects of the box. I
might base other dimensions, like the panel gap on this value as well.
This commit is contained in:
Joel Ebel 2018-05-16 16:08:05 -04:00
parent f911138c93
commit d6f26ae90d

View File

@ -40,6 +40,8 @@ Round = 1; // [0:No, 1:Yes]
PanelGap = 0.9; PanelGap = 0.9;
// - Printer margin around interior cutouts // - Printer margin around interior cutouts
CutoutMargin = 0.6; CutoutMargin = 0.6;
// - Printer margin around exterior edges
OuterMargin = 0.2;
// Pieds PCB - PCB feet (x4) // Pieds PCB - PCB feet (x4)
PCBFeet = 1; // [0:No, 1:Yes] PCBFeet = 1; // [0:No, 1:Yes]
// - Decorations to ventilation holes // - Decorations to ventilation holes
@ -229,13 +231,13 @@ module Coque() { //Coque - Shell
} }
} }
} }
translate([0, Thick*2 + Filet, Height/2 - 57]) { translate([0, Thick*2, Height/2 - ScrewHole]) {
rotate([45, 0, 0]) { rotate([180 + 45, 0, 0]) {
cube([Length, 40, 40]); cube([Length, 5*ScrewHole, 3*ScrewHole]);
} }
} }
translate([0, 0, Height/2]) { translate([0, 0, Height/2]) {
cube([Length, Thick + 0.16, 10]); cube([Length, Thick + OuterMargin, 4*ScrewHole]);
} }
} //Fin fixation box legs } //Fin fixation box legs
} // End union for box and legs } // End union for box and legs