diff --git a/Lenbok_Utils b/Lenbok_Utils index 70a5b6c..1a2c066 160000 --- a/Lenbok_Utils +++ b/Lenbok_Utils @@ -1 +1 @@ -Subproject commit 70a5b6cc058e2a2cd6db44e70278a48cbe310b83 +Subproject commit 1a2c06628a05589f7a27a2af6476a88fe41ec31a diff --git a/keyboard-case.scad b/keyboard-case.scad index 76b3c54..7705f56 100644 --- a/keyboard-case.scad +++ b/keyboard-case.scad @@ -15,7 +15,7 @@ themes = [ ["#73d373", "#bbbbff"], ["#252525", "#bbbbff"], ]; -theme = 3; +theme = 2; keycap_color = themes[theme].x; case_color = themes[theme].y; @@ -167,12 +167,12 @@ module screw_holes(screws, screw_depth = 8, screw_head_depth = plate_thickness + } // children should be a 2d polygon specifying the outer border of case -module top_case(keys, screws, raised = false, chamfer_height = 2.5, chamfer_width) { +module top_case(keys, screws, raised = false, chamfer_height = 2.5, chamfer_width, chamfer_faces = [false, true]) { screw_offset = 3; chamfer_w = chamfer_width == undef ? chamfer_height : chamfer_width; total_depth = plate_thickness + (raised ? top_case_raised_height : 0); color(case_color) difference() { - render() chamfer_extrude(height = total_depth, chamfer = chamfer_height, width = chamfer_w, faces = [false, true], $fn = 25) children(); + render() chamfer_extrude(height = total_depth, chamfer = chamfer_height, width = chamfer_w, faces = chamfer_faces, $fn = 25) children(); translate([0, 0, screw_offset]) screw_holes(screws); translate([0, 0, plate_thickness]) key_holes(keys);