Modify door hanger to make the back kicker optional.
This commit is contained in:
parent
7836296481
commit
1c3e270641
@ -4,21 +4,24 @@ w = 32; // width
|
|||||||
dt = 36; // door thickness
|
dt = 36; // door thickness
|
||||||
|
|
||||||
hookDescent = 100;
|
hookDescent = 100;
|
||||||
backDescent = dt / 3;
|
backDescent = dt / 2;
|
||||||
|
|
||||||
module backSupport(descent, rakeAngle = 20) {
|
module backSupport(descent, rakeAngle = 20, includeKicker = true) {
|
||||||
topExt = sin(rakeAngle)*descent;
|
topExt = sin(rakeAngle)*descent;
|
||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
union() {
|
union() {
|
||||||
cube([t, descent, w]);
|
cube([t, descent, w]);
|
||||||
|
|
||||||
translate([topExt, -1, 0])
|
if (includeKicker) {
|
||||||
rotate([0, 0, rakeAngle])
|
cube([topExt, t, w]);
|
||||||
translate([0, -t, 0])
|
|
||||||
cube([t, descent + t, w]);
|
translate([topExt, -1, 0])
|
||||||
|
rotate([0, 0, rakeAngle])
|
||||||
|
translate([0, -t, 0])
|
||||||
|
cube([t, descent + t, w]);
|
||||||
|
}
|
||||||
|
|
||||||
cube([topExt, t, w]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
union() {
|
union() {
|
||||||
@ -202,7 +205,7 @@ union() {
|
|||||||
|
|
||||||
color("WhiteSmoke")
|
color("WhiteSmoke")
|
||||||
translate([dt + t, 0, 0])
|
translate([dt + t, 0, 0])
|
||||||
backSupport(descent = backDescent, rakeAngle = 36);
|
backSupport(descent = backDescent, rakeAngle = 36, includeKicker = false);
|
||||||
}
|
}
|
||||||
|
|
||||||
hookAndSupport(descent = hookDescent, hookSize = w, angle = 36, debug=false);
|
hookAndSupport(descent = hookDescent, hookSize = w, angle = 36, debug=false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user