Merge pull request #115 from lvisintini/asa-profile

Add new ASA profile (by Akko)
This commit is contained in:
Bob 2022-02-22 16:44:52 -05:00 committed by GitHub
commit 263bd8ebbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -13,6 +13,7 @@ include <key_profiles/grid.scad>
include <key_profiles/regular_polygon.scad>
include <key_profiles/cherry.scad>
include <key_profiles/dss.scad>
include <key_profiles/asa.scad>
// man, wouldn't it be so cool if functions were first order
module key_profile(key_profile_type, row, column=0) {
@ -26,6 +27,8 @@ module key_profile(key_profile_type, row, column=0) {
dss_row(row, column) children();
} else if (key_profile_type == "sa") {
sa_row(row, column) children();
} else if (key_profile_type == "asa") {
asa_row(row, column) children();
} else if (key_profile_type == "g20") {
g20_row(row, column) children();
} else if (key_profile_type == "hipro") {

42
src/key_profiles/asa.scad Normal file
View File

@ -0,0 +1,42 @@
module asa_row(row=3, column = 0) {
$key_shape_type = "sculpted_square";
$bottom_key_height = 18.06;
$bottom_key_width = 18.05; // Default (R3)
$total_depth = 10.35; // Default (R3)
$top_tilt = 1.5; // Default (R3)
$width_difference = 5.05;
$height_difference = 5.56;
$dish_type = "spherical";
$dish_depth = 1.2;
$dish_skew_x = 0;
$dish_skew_y = 0;
$top_skew = 1.75;
$stem_inset = 1.2;
$height_slices = 10;
$corner_radius = 1;
// this is _incredibly_ intensive
//$rounded_key = true;
if (row == 1){
$bottom_key_width = 17.95;
$width_difference = 4.95;
$total_depth = 10.65;
$top_tilt = 7;
children();
} else if (row == 2) {
$bottom_key_width = 18.17;
$width_difference = 5.17;
$total_depth = 9.65;
$top_tilt = 3.25;
children();
} else if (row == 4){
$bottom_key_width = 18.02;
$width_difference = 5.02;
$total_depth = 11.9;
$top_tilt = 0.43;
children();
} else {
children();
}
}