diff options
author | XANTRONIX Development | 2023-11-13 23:44:55 -0500 |
---|---|---|
committer | XANTRONIX Development | 2023-11-13 23:44:55 -0500 |
commit | 2aa662fcbc4a2d7cf36c1d376cbeb78bdae19016 (patch) | |
tree | 39983a193ad44cabc7651b17d77bc24c6649f849 | |
parent | 1e8c16e2d24b2d1afaaced177b22f0224fd75be5 (diff) | |
download | xantronix-z32-2aa662fcbc4a2d7cf36c1d376cbeb78bdae19016.tar.gz xantronix-z32-2aa662fcbc4a2d7cf36c1d376cbeb78bdae19016.tar.bz2 xantronix-z32-2aa662fcbc4a2d7cf36c1d376cbeb78bdae19016.zip |
Remind me to set the origin to PCB tomorrow
-rw-r--r-- | case/top.scad | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/case/top.scad b/case/top.scad index 36e0bb9..a4a54f7 100644 --- a/case/top.scad +++ b/case/top.scad @@ -9,7 +9,7 @@ wall_width = 2.5000; wall_height = 17.2500; accent_width = 1.0000; -accent_height = 0.5; +accent_depth = 0.5; accent_y_stride = 19.0500; accent_y_bottom = 12.0000; @@ -28,7 +28,8 @@ fin_gap_count = 33; fin_gap_x_first = keyboard_x_offset + keyboard_width - fin_gap_count * (fin_width + fin_gap_width); fin_gap_y_offset = case_length_bottom - fin_gap_length; -module fascia_main() { +module fascia() { + linear_extrude(wall_width) difference() { square([case_width_bottom, case_length_bottom], false); translate([keyboard_x_offset, keyboard_y_offset, 0]) @@ -36,25 +37,6 @@ module fascia_main() { } } -module fascia_top() { - linear_extrude(accent_height) - difference() { - fascia_main(); - for (y = [accent_y_bottom: accent_y_stride: case_width_bottom]) { - translate([0, y, 0]) - square([case_width_bottom, accent_width], false); - } - } -} - -module fascia() { - translate([0, 0, wall_width - accent_height]) - fascia_top(); - - linear_extrude(wall_width - accent_height) - fascia_main(); -} - module fin_gaps() { for (i = [0:fin_gap_count]) { x = fin_gap_x_first + (i * (fin_width + fin_gap_width)); @@ -64,4 +46,11 @@ module fin_gaps() { } } -fascia();
\ No newline at end of file +module top_case() { + translate([0, 0, wall_height - wall_width]) + fascia(); + + cube([wall_width, case_length_bottom, wall_height - wall_width], false); +} + +top_case();
\ No newline at end of file |