diff --git a/customizer.scad b/customizer.scad index b088159..22bd20e 100644 --- a/customizer.scad +++ b/customizer.scad @@ -1950,10 +1950,15 @@ module cherry_stabilizer_stem(depth, slop, throw) { } } thickness = .84; +inner_stem_size = [6,4]; +outer_stem_size = inner_stem_size + [thickness, thickness]; module custom_stem(depth, slop, throw){ linear_extrude(height=depth) { - square($alps_stem, center = true); + difference() { + square(outer_stem_size + [slop,slop], center = true); + square(inner_stem_size + [slop,slop], center = true); + } } } diff --git a/keys.scad b/keys.scad index 768110e..6eb0b87 100644 --- a/keys.scad +++ b/keys.scad @@ -9,7 +9,10 @@ include <./includes.scad> // example key -dcs_row(5) legend("⇪", size=9) key(); +/* $stem_throw = 1; */ +$stem_type = "custom"; +$outset_legends = true; +dcs_row(5) front_legend("j") key(); // example row /* for (x = [0:1:4]) { @@ -17,4 +20,4 @@ dcs_row(5) legend("⇪", size=9) key(); } */ // example layout -/* preonic_default("dcs"); */ \ No newline at end of file +/* preonic_default("dcs"); */ diff --git a/src/stems.scad b/src/stems.scad index 6a8cfbe..5883f25 100644 --- a/src/stems.scad +++ b/src/stems.scad @@ -21,6 +21,8 @@ module stem(stem_type, depth, slop, throw){ filled_stem(); } else if (stem_type == "cherry_stabilizer") { cherry_stabilizer_stem(depth, slop, throw); + } else if (stem_type == "custom") { + custom_stem(depth, slop, throw); } else if (stem_type == "disable") { children(); } else { diff --git a/src/stems/custom.scad b/src/stems/custom.scad new file mode 100644 index 0000000..0f7b866 --- /dev/null +++ b/src/stems/custom.scad @@ -0,0 +1,12 @@ +thickness = .84; +inner_stem_size = [6,4]; +outer_stem_size = inner_stem_size + [thickness, thickness]; + +module custom_stem(depth, slop, throw){ + linear_extrude(height=depth) { + difference() { + square(outer_stem_size + [slop,slop], center = true); + square(inner_stem_size + [slop,slop], center = true); + } + } +}