Extrude the whole foot at once
Generate a cross-section of the foot in 2D, then rotate/extrude the whole thing at once. This is a little easier to reason about than working in 3D. You can use debug view to see just the cross section with more ease. It save a line of code, too.
This commit is contained in:
parent
7d85d60ca4
commit
cc471eecaf
@ -342,10 +342,11 @@ module Coque() { //Coque - Shell
|
|||||||
module foot(FootDia, FootHole, FootHeight) {
|
module foot(FootDia, FootHole, FootHeight) {
|
||||||
Filet = FootFilet;
|
Filet = FootFilet;
|
||||||
color(Couleur1) {
|
color(Couleur1) {
|
||||||
difference() {
|
|
||||||
difference() {
|
|
||||||
cylinder(FootHeight, d=(FootDia + Filet*2), $fn=100);
|
|
||||||
rotate_extrude($fn=100) {
|
rotate_extrude($fn=100) {
|
||||||
|
difference() {
|
||||||
|
translate([FootHole/2, 0, 0]) {
|
||||||
|
square([(FootDia - FootHole)/2 + Filet, FootHeight]);
|
||||||
|
}
|
||||||
translate([FootDia/2 + Filet, Filet, 0]) {
|
translate([FootDia/2 + Filet, Filet, 0]) {
|
||||||
offset(r=Filet, $fn=Resolution) {
|
offset(r=Filet, $fn=Resolution) {
|
||||||
square(FootHeight);
|
square(FootHeight);
|
||||||
@ -353,10 +354,8 @@ module foot(FootDia, FootHole, FootHeight) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cylinder(FootHeight + 1, d=FootHole + CutoutMargin, $fn=100);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // Fin module foot
|
|
||||||
|
|
||||||
|
|
||||||
/* Feet module
|
/* Feet module
|
||||||
|
Loading…
Reference in New Issue
Block a user