diff --git a/src/key_profiles.scad b/src/key_profiles.scad index f52e615..15f44d9 100644 --- a/src/key_profiles.scad +++ b/src/key_profiles.scad @@ -13,6 +13,7 @@ include include include include +include // 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") { diff --git a/src/key_profiles/asa.scad b/src/key_profiles/asa.scad new file mode 100644 index 0000000..aaa9ede --- /dev/null +++ b/src/key_profiles/asa.scad @@ -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(); + } +}