From f2257cc53adabed663b91dde227602442794a481 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 23 Nov 2019 20:06:54 +0100 Subject: [PATCH] Case: bug fixes --- rs485-case/case.scad | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/rs485-case/case.scad b/rs485-case/case.scad index 1f60dd3..ff39103 100644 --- a/rs485-case/case.scad +++ b/rs485-case/case.scad @@ -15,8 +15,7 @@ usb_height = 11; rs485_width = 16.5; rs485_height = 8; -lock_thickness = 1; -lock_height = 4; +text_depth = 0.2; over = 0.1; clearance = 0.3; @@ -50,14 +49,6 @@ module bottom() { translate([pcb_length - 9, pcb_rail_width, -pcb_thickness-pcb_depth]) cube([8, pcb_width - 2*pcb_rail_width, pcb_thickness + pcb_depth + over]); } - - // Locks - /* - translate([0, -wall_thickness-lock_thickness, box_height - lock_height]) - cube([pcb_length, lock_thickness + wall_thickness/2, lock_height]); - translate([0, pcb_width + wall_thickness/2, box_height - lock_height]) - cube([pcb_length, lock_thickness + wall_thickness/2, lock_height]); - */ } module top() { @@ -83,17 +74,17 @@ module top() { cube([4, 2, wall_thickness + 2*over]); // USB label - translate([pcb_length-3, pcb_width/2, wall_thickness/2]) + translate([pcb_length-3, pcb_width/2, wall_thickness - text_depth]) rotate(90) scale([0.4, 0.4, 1]) - linear_extrude(wall_thickness/2 + over) + linear_extrude(text_depth + over) text("USB", font = "Liberation Serif", halign="center"); // RS485 label - translate([3, pcb_width/2, wall_thickness/2]) + translate([3, pcb_width/2, wall_thickness - text_depth]) rotate(-90) scale([0.4, 0.4, 1]) - linear_extrude(wall_thickness/2 + over) + linear_extrude(text_depth + over) text("RS 485", font = "Liberation Serif", halign="center"); } } -- 2.39.2