From 1668d4ff7a2686eae837fa5b7d3588c1d719d348 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 8 Jun 2017 13:06:25 -0700 Subject: [PATCH] Case: Make clearances on all sides of PCB into separate variables. --- hardware/portapack_h1/case/pp_h1_parameters.scad | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/hardware/portapack_h1/case/pp_h1_parameters.scad b/hardware/portapack_h1/case/pp_h1_parameters.scad index 1f5e1ddb..113f7cb7 100644 --- a/hardware/portapack_h1/case/pp_h1_parameters.scad +++ b/hardware/portapack_h1/case/pp_h1_parameters.scad @@ -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);