/ src / key_profiles / hipro.scad
hipro.scad
 1  // my own measurements
 2  module hipro_row(row=3, column=0) {
 3    $key_shape_type = "sculpted_square";
 4  
 5    $bottom_key_width = 18.35;
 6    $bottom_key_height = 18.17;
 7  
 8    $width_difference = ($bottom_key_width - 12.3);
 9    $height_difference = ($bottom_key_height - 12.65);
10    $dish_type = "spherical";
11    $dish_depth = 0.75;
12    $dish_skew_x = 0;
13    $dish_skew_y = 0;
14    $top_skew = 0;
15    $height_slices = 10;
16    $corner_radius = 1;
17  
18    $top_tilt_y = side_tilt(column);
19    extra_height =  $double_sculpted ? extra_side_tilt_height(column) : 0;
20  
21    if (row <= 1){
22      $total_depth = 13.7 + extra_height;
23      // TODO I didn't change these yet
24      $top_tilt = -13;
25      children();
26    } else if (row == 2) {
27      $total_depth = 11.1 + extra_height;
28      $top_tilt = -7;
29      children();
30    } else if (row == 3) {
31      $total_depth = 11.1 + extra_height;
32      $top_tilt = 7;
33      children();
34    } else if (row == 4 || row == 5){
35      $total_depth = 12.25 + extra_height;
36      $top_tilt = 13;
37      children();
38    } else {
39      children();
40    }
41  }