standoff variable seperation for gui, initial work for top and bottom standoffs

This commit is contained in:
Edward Kisiel
2024-02-10 17:57:57 -05:00
parent 6262684252
commit a288a924d5
6 changed files with 107 additions and 85 deletions

View File

@@ -469,7 +469,7 @@ module case_bottom(case_design) {
}
}
// standoff sidewall support
if(sidewall_support == true && sbc_top_standoffs == true) {
if(bottom_sidewall_support == true && sbc_top_standoffs == true) {
for (i=[1:11:len(sbc_data[s[0]])-2]) {
class = sbc_data[s[0]][i+1];
type = sbc_data[s[0]][i+2];
@@ -509,7 +509,7 @@ module case_bottom(case_design) {
}
}
// extended standoff sidewall support
if(case_ext_standoffs == true && sidewall_support == true) {
if(case_ext_standoffs == true && bottom_sidewall_support == true) {
// right-rear standoff
if(width-pcb_loc_x-pcb_width >= 10 || pcb_loc_y >= 10) {
translate([width-(2*(wallthick+gap))-(c_fillet/2)+(bottom_ext_standoff[0]/2)-.5,