diff options
-rw-r--r-- | case/top.scad | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/case/top.scad b/case/top.scad index 2d4daef..de42276 100644 --- a/case/top.scad +++ b/case/top.scad @@ -5,10 +5,10 @@ include <logo.scad> module top_case(with_keyboard=false, as_flat=false) { eps = 0.01; - accent_width = 1.0000; + accent_width = 0.5; accent_depth = 0.5; - accent_y_stride = (keyboard_pcb_length - accent_width) / 5.0; - accent_y_bottom = keyboard_y_offset; + accent_y_stride = keyboard_switch_length; + accent_y_bottom = keyboard_y_offset - accent_width / 2; vent_width = 2.0000; vent_length = wall_width; @@ -61,7 +61,9 @@ module top_case(with_keyboard=false, as_flat=false) { } module accents() { - for (y = [accent_y_bottom: accent_y_stride: case_length_bottom]) { + y_end = case_length_bottom - (case_length_bottom - case_length_top) / 2; + + for (y = [accent_y_bottom: accent_y_stride: y_end]) { /* Top */ translate([-eps, y - eps, wall_height - accent_depth]) cube([case_width_bottom+2*eps, accent_width + 2*eps, accent_depth+eps]); @@ -179,13 +181,13 @@ module top_case(with_keyboard=false, as_flat=false) { module badges() { translate([keyboard_x_offset, - keyboard_y_offset + keyboard_pcb_length + keyboard_switch_length + accent_width, + keyboard_y_offset + keyboard_pcb_length + keyboard_switch_length + accent_width * 2, wall_height - accent_depth]) linear_extrude(accent_depth + eps) logotype(size=10); sextile_width = 16.0; - sextile_y = keyboard_y_offset + (keyboard_switch_width + accent_width) / 2; + sextile_y = keyboard_y_offset + (keyboard_switch_width + accent_width) / 2 + accent_width; sextile_x = case_width_bottom - sextile_width; translate([sextile_x, sextile_y, wall_height - accent_depth]) |