From 2697bc7648785e0a3f3f370353767cf762ed9a70 Mon Sep 17 00:00:00 2001 From: Edward Kisiel Date: Wed, 7 Feb 2024 11:01:57 -0500 Subject: [PATCH] included pcb_z in bottom height calculation. --- sbc_case_builder.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbc_case_builder.scad b/sbc_case_builder.scad index 59f0e7e..13523b5 100644 --- a/sbc_case_builder.scad +++ b/sbc_case_builder.scad @@ -154,7 +154,7 @@ pcb_radius = sbc_data[s[0]][11][0]; width = pcb_width+2*(wallthick+gap)+case_offset_x; depth = pcb_depth+2*(wallthick+gap)+case_offset_y; top_height = pcb_tmaxz+floorthick+case_offset_tz; -bottom_height = pcb_bmaxz+floorthick+case_offset_bz; +bottom_height = pcb_z+pcb_bmaxz+floorthick+case_offset_bz; case_z = bottom_height+top_height; case_diameter = sqrt(pow(width-wallthick-gap,2)+pow(depth-wallthick-gap,2)); hex_diameter = sqrt(pow(width+2*(wallthick+gap),2)+pow(depth+2*(wallthick+gap),2));