Use FootHeight as height above box interior.
It is also the depth of the screw hole, which is likely how it will be calculated.
This commit is contained in:
parent
b0027648f0
commit
2942f6005c
@ -62,9 +62,8 @@ RightEdgeMargin = 95;
|
|||||||
TopMargin = 86;
|
TopMargin = 86;
|
||||||
|
|
||||||
/* [PCB_Feet] */
|
/* [PCB_Feet] */
|
||||||
//All dimensions are from the center foot axis
|
// - Heuteur pied - Feet height above box interior
|
||||||
// - Heuteur pied - Feet height
|
FootHeight = 8;
|
||||||
FootHeight = 10;
|
|
||||||
// - Diamètre pied - Foot diameter
|
// - Diamètre pied - Foot diameter
|
||||||
FootDia = 8;
|
FootDia = 8;
|
||||||
// - Diamètre trou - Hole diameter
|
// - Diamètre trou - Hole diameter
|
||||||
@ -278,21 +277,19 @@ module Coque() { //Coque - Shell
|
|||||||
module foot(FootDia, FootHole, FootHeight) {
|
module foot(FootDia, FootHole, FootHeight) {
|
||||||
Filet = 2;
|
Filet = 2;
|
||||||
color(Couleur1) {
|
color(Couleur1) {
|
||||||
translate([0, 0, Filet - 1.5]) {
|
difference() {
|
||||||
difference() {
|
difference() {
|
||||||
difference() {
|
cylinder(FootHeight, d=(FootDia + Filet), $fn=100);
|
||||||
cylinder(FootHeight - Thick, d=(FootDia + Filet), $fn=100);
|
rotate_extrude($fn=100) {
|
||||||
rotate_extrude($fn=100) {
|
translate([(FootDia + Filet*2) / 2, Filet, 0]) {
|
||||||
translate([(FootDia + Filet*2) / 2, Filet, 0]) {
|
minkowski() {
|
||||||
minkowski() {
|
square(10);
|
||||||
square(10);
|
circle(Filet, $fn=100);
|
||||||
circle(Filet, $fn=100);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cylinder(FootHeight + 1, d=FootHole, $fn=100);
|
|
||||||
}
|
}
|
||||||
|
cylinder(FootHeight + 1, d=FootHole, $fn=100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // Fin module foot
|
} // Fin module foot
|
||||||
@ -307,9 +304,9 @@ module foot(FootDia, FootHole, FootHeight) {
|
|||||||
No arguments are used, but parameters provide the PCB and foot dimensions.
|
No arguments are used, but parameters provide the PCB and foot dimensions.
|
||||||
*/
|
*/
|
||||||
module Feet() {
|
module Feet() {
|
||||||
translate([BackEdgeMargin + Thick*2 + m, LeftEdgeMargin + Thick, 0]) {
|
translate([BackEdgeMargin + Thick*2 + m, LeftEdgeMargin + Thick, Thick]) {
|
||||||
//////////////////// - PCB only visible in the preview mode - /////////////////////
|
//////////////////// - PCB only visible in the preview mode - /////////////////////
|
||||||
translate([0, 0, (FootHeight + Thick/2 - 0.5)]) {
|
translate([0, 0, FootHeight]) {
|
||||||
%square([PCBLength, PCBWidth]);
|
%square([PCBLength, PCBWidth]);
|
||||||
translate([PCBLength/2, PCBWidth/2, 0.5]) {
|
translate([PCBLength/2, PCBWidth/2, 0.5]) {
|
||||||
color("Olive") {
|
color("Olive") {
|
||||||
@ -319,16 +316,16 @@ module Feet() {
|
|||||||
} // Fin PCB
|
} // Fin PCB
|
||||||
|
|
||||||
////////////////////////////// - 4 Feet - //////////////////////////////////////////
|
////////////////////////////// - 4 Feet - //////////////////////////////////////////
|
||||||
translate([Foot1X, Foot1Y, Thick/2]) {
|
translate([Foot1X, Foot1Y]) {
|
||||||
foot(FootDia, FootHole, FootHeight);
|
foot(FootDia, FootHole, FootHeight);
|
||||||
}
|
}
|
||||||
translate([Foot2X, Foot2Y, Thick/2]) {
|
translate([Foot2X, Foot2Y]) {
|
||||||
foot(FootDia, FootHole, FootHeight);
|
foot(FootDia, FootHole, FootHeight);
|
||||||
}
|
}
|
||||||
translate([Foot3X, Foot3Y, Thick/2]) {
|
translate([Foot3X, Foot3Y]) {
|
||||||
foot(FootDia, FootHole, FootHeight);
|
foot(FootDia, FootHole, FootHeight);
|
||||||
}
|
}
|
||||||
translate([Foot4X, Foot4Y, Thick/2]) {
|
translate([Foot4X, Foot4Y]) {
|
||||||
foot(FootDia, FootHole, FootHeight);
|
foot(FootDia, FootHole, FootHeight);
|
||||||
}
|
}
|
||||||
} // End main translate
|
} // End main translate
|
||||||
|
Loading…
Reference in New Issue
Block a user