mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2025-02-18 07:10:22 +00:00
![Bob](/assets/img/avatar_default.png)
doesn't work yet, because you can't fit an arbitrary object into a bounding box while maintaining aspect ratio
23 lines
780 B
OpenSCAD
23 lines
780 B
OpenSCAD
// the point of this file is to be a sort of DSL for constructing keycaps.
|
|
// when you create a method chain you are just changing the parameters
|
|
// key.scad uses, it doesn't generate anything itself until the end. This
|
|
// lets it remain easy to use key.scad like before (except without key profiles)
|
|
// without having to rely on this file. Unfortunately that means setting tons of
|
|
// special variables, but that's a limitation of SCAD we have to work around
|
|
|
|
include <./includes.scad>
|
|
|
|
|
|
// example key
|
|
$stem_inner_slop = 0;
|
|
dcs_row(5) autolegend(["q", "w", "a", "z", "e", "r", "t", "", "hoobastank"]) {
|
|
$stem_positions = [[2,2]];
|
|
key();
|
|
}
|
|
// example row
|
|
/* for (x = [0:1:4]) {
|
|
translate_u(0,-x) dcs_row(x) key();
|
|
} */
|
|
|
|
// example layout
|
|
/* preonic_default("dcs") key(); */
|