From 7f09be5e0bb2e39839597e2030c60b0f8bfc58dd Mon Sep 17 00:00:00 2001 From: Edward Kisiel Date: Sun, 7 Aug 2022 19:43:20 -0400 Subject: [PATCH] fixed floorthick in round and hex cases, updated readme --- README.md | 4 ++-- sbc_case_builder.scad | 16 +++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1295d1e..3c94c00 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This project is about autonomous SBC case creation. It utilizes the SBC Model Framework project to automatically generate cases based on the data for any given SBC contained within the framework. - +It uses the Customizer for a graphical user interface for all case attributes. Cases can be created, saved, recalled and edited using the graphical interface after enabling the customizer in the OpenSCAD menu view. License: GPLv3. ![Image](SBC_Case_Builder_Cases.gif) @@ -19,7 +19,7 @@ License: GPLv3. ``` ### Notes - + More information can be found at this [Hard Kernel forum thread](https://forum.odroid.com/viewtopic.php?f=53&t=43948) ### Case Designs and Styles diff --git a/sbc_case_builder.scad b/sbc_case_builder.scad index 1fd4eaa..982aa91 100644 --- a/sbc_case_builder.scad +++ b/sbc_case_builder.scad @@ -512,9 +512,8 @@ module case_bottom(case_design) { cylinder_fillet_inside(h=bottom_height, r=case_diameter/2, top=0, bottom=fillet, $fn=case_fn, fillet_fn=case_ffn, center=true); translate([pcb_width/2,pcb_depth/2,(bottom_height/2)+floorthick]) rotate([0,0,30]) - cylinder_fillet_inside(h=bottom_height+adjust+floorthick, - r=(case_diameter/2)-lip/2,top=0, bottom=fillet-1, $fn=case_fn, - fillet_fn=case_ffn, center=true); + cylinder_fillet_inside(h=bottom_height+adjust, r=(case_diameter/2)-lip/2, + top=0, bottom=fillet-1, $fn=case_fn, fillet_fn=case_ffn, center=true); difference() { translate([pcb_width/2,pcb_depth/2,bottom_height-lip]) rotate([0,0,30]) cylinder(h=lip+adjust, r=(case_diameter/2)+1, $fn=case_fn); @@ -525,7 +524,7 @@ module case_bottom(case_design) { difference() { translate([pcb_width/2,pcb_depth/2,(bottom_height/2)+2*floorthick]) rotate([0,0,30]) cylinder_fillet_inside(h=bottom_height+adjust+floorthick+lip, - r=(case_diameter/2)-lip/2,top=0, bottom=fillet-1, $fn=case_fn, + r=(case_diameter/2)-lip/2,top=0,bottom=fillet-1, $fn=case_fn, fillet_fn=case_ffn, center=true); translate([-16,(depth/2)-150,-adjust]) cube([width+10,300,case_z-2*floorthick-2]); @@ -540,14 +539,13 @@ module case_bottom(case_design) { cylinder_fillet_inside(h=bottom_height, r=case_diameter/2, top=0, bottom=fillet, $fn=6, fillet_fn=case_ffn, center=true); translate([pcb_width/2,pcb_depth/2,(bottom_height/2)+floorthick]) rotate([0,0,30]) - cylinder_fillet_inside(h=bottom_height+adjust+floorthick, - r=(case_diameter/2)-lip/2,top=0, bottom=fillet-1, $fn=6, - fillet_fn=case_ffn, center=true); + cylinder_fillet_inside(h=bottom_height+adjust,r=(case_diameter/2)-lip/2,top=0, + bottom=fillet-1,$fn=6,fillet_fn=case_ffn, center=true); difference() { translate([pcb_width/2,pcb_depth/2,bottom_height-lip]) rotate([0,0,30]) - cylinder(h=lip+adjust, r=(case_diameter/2)+1, $fn=6); + cylinder(h=lip+adjust,r=(case_diameter/2)+1, $fn=6); translate([pcb_width/2,pcb_depth/2,bottom_height-lip]) rotate([0,0,30]) - cylinder(h=lip+2*adjust, r=(case_diameter/2)-lip/4, $fn=6); + cylinder(h=lip+2*adjust,r=(case_diameter/2)-lip/4, $fn=6); } } difference() {