From b833e27e878112479eb81a8eaab851e15c46ce1a Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 25 Nov 2023 12:07:29 -0500 Subject: Initial commit of case/params.scad --- case/params.scad | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 case/params.scad (limited to 'case') diff --git a/case/params.scad b/case/params.scad new file mode 100644 index 0000000..f49c4cf --- /dev/null +++ b/case/params.scad @@ -0,0 +1,52 @@ +/* [Case wall dimensions:] */ +// Wall width (thickness) +wall_width = 2.5000; +// Wall width (thickness) along upper wall of case +wall_width_upper = 1.5000; +// Wall lip height along upper wall of case +wall_lip_upper = 3.0000; +// Wall height +wall_height = 17.2500; + +// Width of topmost part of case +case_width_top = 317.5000; +// Width of bottom part of case +case_width_bottom = 319.0000; +// Length of topmost part of case +case_length_top = 150.0000; +// Length of bottom part of case +case_length_bottom = 151.5000; + +// X offset of keyboard +keyboard_x_offset = 12.2500; +// Y offset of keyboard +keyboard_y_offset = 12.2500; + +// Top case screw post inner diameter +screw_post_diameter_inner = 3.00; +// Top case screw post outer diameter +screw_post_diameter_outer = 6.25; +// Top case corner screw post height +screw_post_corner_height = 12.00; +// Top case middle screw post height +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] +]; -- cgit v1.2.3