Updates made after review by @limitium

This commit is contained in:
Luis Visintini 2021-11-06 14:02:02 +00:00
parent 665698771f
commit 2d03e5dd4b
1 changed files with 18 additions and 20 deletions

View File

@ -1,11 +1,13 @@
module asa_row(row=3, column = 0) {
$key_shape_type = "sculpted_square";
$bottom_key_width = 18.4;
$bottom_key_height = 18.4;
$width_difference = 5.7;
$height_difference = 5.7;
$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;
$dish_depth = 1.2;
$dish_skew_x = 0;
$dish_skew_y = 0;
$top_skew = 1.75;
@ -16,29 +18,25 @@ module asa_row(row=3, column = 0) {
// this is _incredibly_ intensive
//$rounded_key = true;
$top_tilt_y = side_tilt(column);
extra_height = $double_sculpted ? extra_side_tilt_height(column) : 0;
if (row <= 1){
$total_depth = 10.65 + extra_height;
if (row == 1){
$bottom_key_width = 17.95;
$width_difference = 4.95;
$total_depth = 10.65;
$top_tilt = 7;
children();
} else if (row == 2) {
$total_depth = 9.65 + extra_height;
$bottom_key_width = 18.17;
$width_difference = 5.17;
$total_depth = 9.65;
$top_tilt = 3.25;
children();
} else if (row == 3) {
$total_depth = 10.35 + extra_height;
$top_tilt = 1.5;
children();
} else if (row == 4 || row == 5){
$total_depth = 11.9 + extra_height;
} else if (row == 4){
$bottom_key_width = 18.02;
$width_difference = 5.02;
$total_depth = 11.9;
$top_tilt = 0.43;
children();
} else {
// Same as row == 3
$total_depth = 10.35 + extra_height;
$top_tilt = 1.5;
children();
}
}