Added checks to ensure that screw diameter is only accounted for in

screw together mode
This commit is contained in:
Tom Hotston 2023-02-11 17:45:49 +00:00
parent 997d2d545b
commit 7f55ff8770
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -68,8 +68,7 @@ module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh) {
gy = gridy == 0 ? floor(diy/length) : gridy;
dx = max(gx*length-0.5, dix);
dy = max(gy*length-0.5, diy);
off = (sp==0?0:sp==1?bp_h_bot:h_skel+(sm?h_hole:0)+(sh==0?d_screw:sh==1?d_cs:h_cb));
off = (sp==0?0:sp==1?bp_h_bot:h_skel+(sm?h_hole:0)+(sh==0?sp!=3?0:d_screw:sh==1?d_cs:h_cb));
difference() {
translate([0,0,h_base])