That's a bit tidier

This commit is contained in:
XANTRONIX 2023-11-24 22:12:33 -05:00
parent 50fcb5fdbf
commit abd2e4a922

View file

@ -6,8 +6,6 @@ include <keyboard.scad>
include <logo.scad> include <logo.scad>
module top_case(with_keyboard=false) { module top_case(with_keyboard=false) {
keyboard_deck_z_offset = wall_height - keyboard_switch_height;
accent_width = 1.0000; accent_width = 1.0000;
accent_depth = 0.5; accent_depth = 0.5;
accent_y_stride = (keyboard_pcb_length - accent_width) / 5.0; accent_y_stride = (keyboard_pcb_length - accent_width) / 5.0;
@ -207,9 +205,11 @@ module top_case(with_keyboard=false) {
screw_posts(); screw_posts();
if (with_keyboard) { if (with_keyboard) {
z_offset = wall_height - keyboard_switch_height;
keyboard_supports(); keyboard_supports();
translate([keyboard_x_offset, keyboard_y_offset, keyboard_deck_z_offset]) translate([keyboard_x_offset, keyboard_y_offset, z_offset])
keyboard_deck(wall_width); keyboard_deck(wall_width);
} else { } else {
supports(); supports();