add $inset_legend_depth

This commit is contained in:
Bob 2020-01-10 01:38:31 -05:00
parent 2c89a884da
commit d5a1d17adb
2 changed files with 7 additions and 3 deletions

View File

@ -205,6 +205,7 @@ module envelope(depth_difference=0) {
}
}
// I think this is unused
module dished_for_show() {
difference(){
union() {
@ -219,7 +220,7 @@ module dished_for_show() {
// for when you want to take the dish out of things
// used for adding the dish to the key shape and making sure stems don't stick out the top
// creates a bounding box 1.5 times larger in width and height than the keycap.
module dished(depth_difference, inverted = false) {
module dished(depth_difference = 0, inverted = false) {
intersection() {
children();
difference(){
@ -356,8 +357,8 @@ module key(inset = false) {
}
// subtractive objects at the top of the key
if (inset) artisan(0.3) children();
if(!$outset_legends) legends(0.3);
if (inset) artisan($inset_legend_depth) children();
if(!$outset_legends) legends($inset_legend_depth);
// subtract the clearance check if it's enabled, letting the user see the
// parts of the keycap that will hit the cherry switch
if ($clearance_check) clearance_check();

View File

@ -150,6 +150,9 @@ $legends = [];
// broken off from artisan support since who wants outset legends?
$outset_legends = false;
// how recessed inset legends / artisans are from the top of the key
$inset_legend_depth = 0.3;
// Dimensions of alps stem
$alps_stem = [4.45, 2.25];