You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
605 B
23 lines
605 B
include <config.scad> |
|
|
|
if (is_undef(noLedHookPrev) || noLedHookPrev == false) { |
|
ledHookSeparate(ledHookSize, ledHookTh, ledHookSlitW, eps); |
|
} |
|
|
|
module ledHook(wdh, th, slitW, eps = 0.001) { |
|
difference() { |
|
cube(wdh); |
|
translate([-eps, -th, th]) { |
|
cube([wdh.x+eps*2, wdh.y, wdh.z]); |
|
} |
|
translate([wdh.x / 2 - slitW / 2, -eps, -eps]) |
|
cube([slitW, wdh.y, th+eps*2]); |
|
} |
|
} |
|
|
|
module ledHookSeparate(wdh, th, slitW, eps = 0.001) { |
|
ledHook(wdh, th, slitW, eps); |
|
translate([0, wdh.y-th-eps, wdh.z-th]) |
|
cube([wdh.x, wdh.y, th]); |
|
} |
|
|
|
|