summaryrefslogtreecommitdiffstats
path: root/case/dimensions.scad
blob: 259b8b338c7ec3a85ac50653107e25326d4ce8eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
wall_width       =  2.5000;
wall_width_upper =  1.5000;
wall_lip_upper   =  3.0000;
wall_height      = 17.2500;

case_width_top     = 317.5000;
case_width_bottom  = 319.0000;
case_length_top    = 150.0000;
case_length_bottom = 151.5000;
case_height        = wall_height;

keyboard_x_offset = 12.2500;
keyboard_y_offset = 12.2500;

screw_post_diameter_inner  =  3.00;
screw_post_diameter_outer  =  6.25;
screw_post_corner_height   = 12.00;
screw_post_middle_height   = 29.30;
screw_post_lower_y_offset  = (keyboard_y_offset - 2 * wall_width) / 2 + wall_width;
screw_post_middle_y_offset = screw_post_lower_y_offset  + 65.00;
screw_post_upper_y_offset  = screw_post_middle_y_offset + 65.00;
screw_post_x_offset        = (keyboard_x_offset - 2 * wall_width) / 2 + wall_width;

top_case_screw_posts = [
    /* Upper row */
    [screw_post_x_offset,   screw_post_upper_y_offset, screw_post_corner_height],
    [case_width_bottom / 2, case_length_bottom - 10.0, screw_post_middle_height],
    [case_width_bottom - screw_post_x_offset, screw_post_upper_y_offset, screw_post_corner_height],

    /* Middle row */
    [screw_post_x_offset, screw_post_middle_y_offset, screw_post_corner_height],
    [case_width_bottom - screw_post_x_offset, screw_post_middle_y_offset, screw_post_corner_height],

    /* Bottom row */
    [screw_post_x_offset, screw_post_lower_y_offset, screw_post_corner_height],
    [case_width_bottom / 2, screw_post_lower_y_offset, screw_post_corner_height],
    [case_width_bottom - screw_post_x_offset, screw_post_lower_y_offset, screw_post_corner_height]
];