summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2023-11-16 19:29:26 -0500
committerXANTRONIX Development2023-11-16 19:29:26 -0500
commit62855b75dcf995b3bf577df9cc928ec7bde419ec (patch)
tree641a0532dec6d665a503b167024e050955caf592
parent2dc7320a1f4c79e49cdd507b4b7fa32ade226116 (diff)
downloadxantronix-z32-62855b75dcf995b3bf577df9cc928ec7bde419ec.tar.gz
xantronix-z32-62855b75dcf995b3bf577df9cc928ec7bde419ec.tar.bz2
xantronix-z32-62855b75dcf995b3bf577df9cc928ec7bde419ec.zip
Yes, this is good
-rw-r--r--case/top.scad68
1 files changed, 34 insertions, 34 deletions
diff --git a/case/top.scad b/case/top.scad
index e9a2098..fe741bb 100644
--- a/case/top.scad
+++ b/case/top.scad
@@ -112,54 +112,54 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
}
}
- module support(dimensions, width) {
- length = dimensions[0];
- height = dimensions[1];
+ module supports() {
+ module support(dimensions, width) {
+ length = dimensions[0];
+ height = dimensions[1];
- module right_triangle(base) {
- hypot = sqrt(2*(base^2));
+ module right_triangle(base) {
+ hypot = sqrt(2*(base^2));
- intersection() {
- square([base, base]);
+ intersection() {
+ square([base, base]);
- translate([-base, 0, 0])
- rotate([0, 0, -45])
- square([hypot, hypot]);
+ translate([-base, 0, 0])
+ rotate([0, 0, -45])
+ square([hypot, hypot]);
+ }
}
- }
- module shape() {
- /* Height ratio of lower aspect to upper aspect */
- aspect_ratio = 3.75 / 12.0;
+ module shape() {
+ /* Height ratio of lower aspect to upper aspect */
+ aspect_ratio = 3.75 / 12.0;
- aspect_upper_height = height;
- aspect_lower_height = aspect_ratio * height;
+ aspect_upper_height = height;
+ aspect_lower_height = aspect_ratio * height;
- /* The length of each individual support aspect */
- aspect_length = 1/3 * length;
+ /* The length of each individual support aspect */
+ aspect_length = 1/3 * length;
- hypotenuse = sqrt(2*(aspect_length^2));
- lower_x_offset = aspect_length - (hypotenuse - aspect_length);
+ hypotenuse = sqrt(2*(aspect_length^2));
+ lower_x_offset = aspect_length - (hypotenuse - aspect_length);
- right_triangle(height);
+ right_triangle(height);
- square([length, aspect_lower_height], false);
+ square([length, aspect_lower_height], false);
- translate([3 * aspect_length, 0, 0])
- mirror([1, 0, 0])
- right_triangle(height);
- }
+ translate([3 * aspect_length, 0, 0])
+ mirror([1, 0, 0])
+ right_triangle(height);
+ }
- translate([0, length, 0])
- rotate([-90, 0, -90])
- linear_extrude(width)
- intersection() {
- shape();
- square([length, height], false);
+ translate([0, length, 0])
+ rotate([-90, 0, -90])
+ linear_extrude(width)
+ intersection() {
+ shape();
+ square([length, height], false);
+ }
}
- }
- module supports() {
support_x_interval = (keyboard_width + 2 * wall_width - support_width) / 6;
support_x_offset = keyboard_x_offset - wall_width;