mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2025-03-22 06:16:37 +00:00
add $inset_legend_depth
This commit is contained in:
parent
2c89a884da
commit
d5a1d17adb
2 changed files with 7 additions and 3 deletions
|
@ -205,6 +205,7 @@ module envelope(depth_difference=0) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// I think this is unused
|
||||||
module dished_for_show() {
|
module dished_for_show() {
|
||||||
difference(){
|
difference(){
|
||||||
union() {
|
union() {
|
||||||
|
@ -219,7 +220,7 @@ module dished_for_show() {
|
||||||
// for when you want to take the dish out of things
|
// 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
|
// 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.
|
// 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() {
|
intersection() {
|
||||||
children();
|
children();
|
||||||
difference(){
|
difference(){
|
||||||
|
@ -356,8 +357,8 @@ module key(inset = false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// subtractive objects at the top of the key
|
// subtractive objects at the top of the key
|
||||||
if (inset) artisan(0.3) children();
|
if (inset) artisan($inset_legend_depth) children();
|
||||||
if(!$outset_legends) legends(0.3);
|
if(!$outset_legends) legends($inset_legend_depth);
|
||||||
// subtract the clearance check if it's enabled, letting the user see the
|
// subtract the clearance check if it's enabled, letting the user see the
|
||||||
// parts of the keycap that will hit the cherry switch
|
// parts of the keycap that will hit the cherry switch
|
||||||
if ($clearance_check) clearance_check();
|
if ($clearance_check) clearance_check();
|
||||||
|
|
|
@ -150,6 +150,9 @@ $legends = [];
|
||||||
// broken off from artisan support since who wants outset legends?
|
// broken off from artisan support since who wants outset legends?
|
||||||
$outset_legends = false;
|
$outset_legends = false;
|
||||||
|
|
||||||
|
// how recessed inset legends / artisans are from the top of the key
|
||||||
|
$inset_legend_depth = 0.3;
|
||||||
|
|
||||||
// Dimensions of alps stem
|
// Dimensions of alps stem
|
||||||
$alps_stem = [4.45, 2.25];
|
$alps_stem = [4.45, 2.25];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue