diff options
author | XANTRONIX Development | 2023-11-13 23:19:15 -0500 |
---|---|---|
committer | XANTRONIX Development | 2023-11-13 23:19:15 -0500 |
commit | 4db23b78ea162b59272039b959de77b54915195f (patch) | |
tree | 0bed2aca03ceca8e32332ecdeb37ad31d3bd834f | |
parent | a2fac245a921f760874cbd6e1406aa92e65438cd (diff) | |
download | xantronix-z32-4db23b78ea162b59272039b959de77b54915195f.tar.gz xantronix-z32-4db23b78ea162b59272039b959de77b54915195f.tar.bz2 xantronix-z32-4db23b78ea162b59272039b959de77b54915195f.zip |
Slowly getting my ideas right
-rw-r--r-- | case/top.scad | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/case/top.scad b/case/top.scad index e7e059d..9ba3180 100644 --- a/case/top.scad +++ b/case/top.scad @@ -12,7 +12,6 @@ accent_width = 1.0000; accent_height = 0.5; accent_y_stride = 19.0500; accent_y_bottom = 12.0000; -/* last accent is 4mm from top of case */ key_switch_width = 19.0500; key_switch_length = 19.0500; @@ -29,21 +28,32 @@ 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; -difference() { - square([case_width_bottom, case_length_bottom], false); - translate([keyboard_x_offset, keyboard_y_offset, 0]) - square([keyboard_width, keyboard_length], false); +module fascia() { + difference() { + square([case_width_bottom, case_length_bottom], false); + translate([keyboard_x_offset, keyboard_y_offset, 0]) + square([keyboard_width, keyboard_length], false); + } +} - for (y = [accent_y_bottom: accent_y_stride: case_width_bottom]) { - translate([0, y, 0]) - square([case_width_bottom, accent_width], false); +module fascia_top() { + linear_extrude(accent_height) + difference() { + fascia(); + for (y = [accent_y_bottom: accent_y_stride: case_width_bottom]) { + translate([0, y, 0]) + square([case_width_bottom, accent_width], false); + } } - +} + +module fin_gaps() { for (i = [0:fin_gap_count]) { x = fin_gap_x_first + (i * (fin_width + fin_gap_width)); translate([x, fin_gap_y_offset, 0]) square([fin_gap_width, fin_gap_length], false); - } + } } +fascia_top();
\ No newline at end of file |