A bit more sane
This commit is contained in:
parent
02a787efd1
commit
109008dd6f
1 changed files with 8 additions and 5 deletions
|
@ -10,11 +10,14 @@ module keyboard_base_plate(pcb_width, pcb_length) {
|
|||
pcb_screw_hole_diameter = 1.5;
|
||||
|
||||
thickness = 1.75;
|
||||
wall_height = 14.0;
|
||||
corner_radius = thickness / 2.0;
|
||||
|
||||
case_color = [0.5, 0.5, 0.5, 1.0];
|
||||
|
||||
wall_width = pcb_width + 2 * pcb_clearance_edge;
|
||||
wall_length = pcb_length + 2 * pcb_clearance_edge;
|
||||
wall_height = 14.0;
|
||||
|
||||
bottom_width = 2 * (pcb_clearance_edge + thickness) + pcb_width;
|
||||
bottom_length = 2 * (pcb_clearance_edge + thickness) + pcb_length;
|
||||
|
||||
|
@ -191,25 +194,25 @@ module keyboard_base_plate(pcb_width, pcb_length) {
|
|||
side([0 - thickness - pcb_clearance_edge,
|
||||
pcb_clearance_edge + pcb_length + corner_radius,
|
||||
-thickness/2],
|
||||
[bottom_width, thickness, wall_height]);
|
||||
[wall_width, thickness, wall_height]);
|
||||
|
||||
/* Right wall */
|
||||
side([pcb_clearance_edge + pcb_width + corner_radius,
|
||||
0 - thickness - pcb_clearance_edge,
|
||||
-thickness/2],
|
||||
[thickness, bottom_length, wall_height]);
|
||||
[thickness, wall_length, wall_height]);
|
||||
|
||||
/* Lower wall */
|
||||
side([0 - thickness - pcb_clearance_edge,
|
||||
0 - thickness - pcb_clearance_edge - corner_radius,
|
||||
-thickness/2],
|
||||
[bottom_width, thickness, wall_height]);
|
||||
[wall_width, thickness, wall_height]);
|
||||
|
||||
/* Left wall */
|
||||
side([0 - thickness - pcb_clearance_edge - corner_radius,
|
||||
0 - thickness - pcb_clearance_edge,
|
||||
-thickness/2],
|
||||
[thickness, bottom_length, wall_height]);
|
||||
[thickness, wall_length, wall_height]);
|
||||
|
||||
/* Bottom plate */
|
||||
side([0 - thickness - pcb_clearance_edge,
|
||||
|
|
Loading…
Add table
Reference in a new issue