mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2024-11-26 14:54:21 +00:00
XDA profile
This commit is contained in:
parent
19f0d2faad
commit
032f466498
@ -16,6 +16,7 @@ include <key_profiles/dss.scad>
|
|||||||
include <key_profiles/asa.scad>
|
include <key_profiles/asa.scad>
|
||||||
include <key_profiles/typewriter.scad>
|
include <key_profiles/typewriter.scad>
|
||||||
include <key_profiles/hex.scad>
|
include <key_profiles/hex.scad>
|
||||||
|
include <key_profiles/xda.scad>
|
||||||
|
|
||||||
// man, wouldn't it be so cool if functions were first order
|
// man, wouldn't it be so cool if functions were first order
|
||||||
module key_profile(key_profile_type, row, column=0) {
|
module key_profile(key_profile_type, row, column=0) {
|
||||||
@ -48,7 +49,9 @@ module key_profile(key_profile_type, row, column=0) {
|
|||||||
} else if (key_profile_type == "cherry") {
|
} else if (key_profile_type == "cherry") {
|
||||||
cherry_row(row, column) children();
|
cherry_row(row, column) children();
|
||||||
} else if (key_profile_type == "mt3") {
|
} else if (key_profile_type == "mt3") {
|
||||||
mt3_row(row, column) children();
|
mt3_row(row, column) children();
|
||||||
|
} else if (key_profile_type == "xda") {
|
||||||
|
xda_row(row, column) children();
|
||||||
} else if (key_profile_type == "disable") {
|
} else if (key_profile_type == "disable") {
|
||||||
children();
|
children();
|
||||||
} else {
|
} else {
|
||||||
|
29
src/key_profiles/xda.scad
Normal file
29
src/key_profiles/xda.scad
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
use <../functions.scad>
|
||||||
|
include <../settings.scad>
|
||||||
|
|
||||||
|
module xda_row(row=0, column = 0) {
|
||||||
|
$key_shape_type = "sculpted_square";
|
||||||
|
$bottom_key_width = 18.1;
|
||||||
|
$bottom_key_height = 18.1;
|
||||||
|
$width_difference = 3.7;
|
||||||
|
$height_difference = 3.7;
|
||||||
|
$top_tilt = 0;
|
||||||
|
$top_skew = 0;
|
||||||
|
$dish_type = "spherical";
|
||||||
|
$dish_skew_x = 0;
|
||||||
|
$dish_skew_y = 0;
|
||||||
|
$height_slices = 10;
|
||||||
|
$enable_side_sculpting = true;
|
||||||
|
$corner_radius = 0.6;
|
||||||
|
|
||||||
|
$side_sculpting = function(progress) (1 - progress) * 3.5;
|
||||||
|
$corner_sculpting = function(progress) pow(progress, 2) * 3;
|
||||||
|
|
||||||
|
$top_tilt_y = side_tilt(column);
|
||||||
|
extra_height = $double_sculpted ? extra_side_tilt_height(column) : 0;
|
||||||
|
|
||||||
|
// These together make the height = 9.7 at the corners and 9 at the center
|
||||||
|
$total_depth = 10.3 + extra_height;
|
||||||
|
$dish_depth = 1.3;
|
||||||
|
children();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user