mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Case: Make clearances on all sides of PCB into separate variables.
This commit is contained in:
parent
b0f411f8a4
commit
1668d4ff7a
@ -21,6 +21,11 @@ case_bottom_tool_r = 3.0;
|
||||
h1_led_hole_diameter = 2;
|
||||
h1_led_diffuser_thickness = 0.85;
|
||||
|
||||
case_pcb_n_clearance = h1_led_diffuser_thickness + 0.15;
|
||||
case_pcb_w_clearance = pcb_case_clearance;
|
||||
case_pcb_e_clearance = pcb_case_clearance;
|
||||
case_pcb_s_clearance = pcb_case_clearance;
|
||||
|
||||
lcd_thickness = 3.8;
|
||||
case_lid_thickness = 3.0 / 16.0 * 25.4;
|
||||
|
||||
@ -63,10 +68,10 @@ module pcb_outline_clearance() {
|
||||
minkowski() {
|
||||
offset(r=-pcb_corner_r) {
|
||||
polygon([
|
||||
[0 - h1_led_diffuser_thickness, 0 - pcb_case_clearance],
|
||||
[0 - h1_led_diffuser_thickness, pcb_w + pcb_case_clearance],
|
||||
[pcb_l + pcb_case_clearance, pcb_w + pcb_case_clearance],
|
||||
[pcb_l + pcb_case_clearance, 0 - pcb_case_clearance]
|
||||
[0 - case_pcb_n_clearance, 0 - case_pcb_w_clearance],
|
||||
[0 - case_pcb_n_clearance, pcb_w + case_pcb_e_clearance],
|
||||
[pcb_l + case_pcb_s_clearance, pcb_w + case_pcb_e_clearance],
|
||||
[pcb_l + case_pcb_s_clearance, 0 - case_pcb_w_clearance]
|
||||
]);
|
||||
}
|
||||
circle(r=pcb_corner_r);
|
||||
|
Loading…
Reference in New Issue
Block a user