mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2024-11-23 05:34:23 +00:00
6429f168e1
rediscovered my old keysets file, adapted the functionality to make a flexible base layout tool. also tweaked double sculpting to generically sculpt to both hands. it works, but it still needs more refinement, and the best layouts are going to be hand-generated anyways
28 lines
886 B
OpenSCAD
28 lines
886 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
|
|
|
|
use <src/key.scad>
|
|
|
|
include <src/settings.scad>
|
|
include <src/key_sizes.scad>
|
|
include <src/key_profiles.scad>
|
|
include <src/key_types.scad>
|
|
include <src/key_transformations.scad>
|
|
include <src/key_helpers.scad>
|
|
include <src/key_layouts.scad>
|
|
|
|
// example key
|
|
dcs_row(5) legend("⇪", size=9) key();
|
|
|
|
// example row
|
|
/* for (x = [0:1:4]) {
|
|
translate_u(0,-x) dcs_row(x) key();
|
|
} */
|
|
|
|
// example layout
|
|
/* preonic_default("dcs"); */
|