Skip to content

Commit

Permalink
Fix clearence -> clearance typo
Browse files Browse the repository at this point in the history
  • Loading branch information
smkent authored and Ruudjhuu committed Jan 29, 2024
1 parent faff922 commit 0b7bf6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions gridfinity-rebuilt-baseplate.scad
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh, fitx, fit

gx = gridx == 0 ? floor(dix/length) : gridx;
gy = gridy == 0 ? floor(diy/length) : gridy;
dx = max(gx*length-bp_xy_clearence, dix);
dy = max(gy*length-bp_xy_clearence, diy);
dx = max(gx*length-bp_xy_clearance, dix);
dy = max(gy*length-bp_xy_clearance, diy);

off = calculate_off(sp, sm, sh);

offsetx = dix < dx ? 0 : (gx*length-bp_xy_clearence-dix)/2*fitx*-1;
offsety = diy < dy ? 0 : (gy*length-bp_xy_clearence-diy)/2*fity*-1;
offsetx = dix < dx ? 0 : (gx*length-bp_xy_clearance-dix)/2*fitx*-1;
offsety = diy < dy ? 0 : (gy*length-bp_xy_clearance-diy)/2*fity*-1;

difference() {
translate([offsetx,offsety,h_base])
Expand Down
4 changes: 2 additions & 2 deletions standard.scad
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ bp_rcut_width = 8.5;
bp_rcut_length = 4.25;
// Baseplate bottom cutout rounded thingy depth
bp_rcut_depth = 2;
// Baseplate clearence offset
bp_xy_clearence = 0.5;
// Baseplate clearance offset
bp_xy_clearance = 0.5;
// countersink diameter for baseplate
d_cs = 2.5;
// radius of cutout for skeletonized baseplate
Expand Down

0 comments on commit 0b7bf6e

Please sign in to comment.