mirror of
https://github.com/kennetek/gridfinity-rebuilt-openscad.git
synced 2024-12-22 14:53:25 +00:00
Fix whitespace errors using pre-commit
This commit is contained in:
parent
e50dde1aa7
commit
944dd39c81
4 changed files with 7 additions and 7 deletions
|
@ -79,7 +79,7 @@ module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh, fitx, fit
|
||||||
|
|
||||||
offsetx = dix < dx ? 0 : (gx*length-bp_xy_clearence-dix)/2*fitx*-1;
|
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;
|
offsety = diy < dy ? 0 : (gy*length-bp_xy_clearence-diy)/2*fity*-1;
|
||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
translate([offsetx,offsety,h_base])
|
translate([offsetx,offsety,h_base])
|
||||||
mirror([0,0,1])
|
mirror([0,0,1])
|
||||||
|
|
|
@ -88,11 +88,11 @@ color("tomato") {
|
||||||
gridfinityInit(gridx, gridy, height(gridz, gridz_define, style_lip, enable_zsnap), height_internal) {
|
gridfinityInit(gridx, gridy, height(gridz, gridz_define, style_lip, enable_zsnap), height_internal) {
|
||||||
|
|
||||||
if (divx > 0 && divy > 0) {
|
if (divx > 0 && divy > 0) {
|
||||||
|
|
||||||
cutEqual(n_divx = divx, n_divy = divy, style_tab = style_tab, scoop_weight = scoop);
|
cutEqual(n_divx = divx, n_divy = divy, style_tab = style_tab, scoop_weight = scoop);
|
||||||
|
|
||||||
} else if (cdivx > 0 && cdivy > 0) {
|
} else if (cdivx > 0 && cdivy > 0) {
|
||||||
|
|
||||||
cutCylinders(n_divx=cdivx, n_divy=cdivy, cylinder_diameter=cd, cylinder_height=ch, coutout_depth=c_depth, orientation=c_orientation);
|
cutCylinders(n_divx=cdivx, n_divy=cdivy, cylinder_diameter=cd, cylinder_height=ch, coutout_depth=c_depth, orientation=c_orientation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,6 +131,6 @@ module gridfinityLite(gridx, gridy, gridz, gridz_define, style_lip, enable_zsnap
|
||||||
translate([0,0,0])
|
translate([0,0,0])
|
||||||
rounded_rectangle(gridx*1000, gridy*1000, 5, r_f2);
|
rounded_rectangle(gridx*1000, gridy*1000, 5, r_f2);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,11 +43,11 @@ module cutCylinders(n_divx=1, n_divy=1, cylinder_diameter=1, cylinder_height=1,
|
||||||
padding = 2;
|
padding = 2;
|
||||||
cutout_x = gridx_mm - d_wall*2;
|
cutout_x = gridx_mm - d_wall*2;
|
||||||
cutout_y = gridy_mm - d_wall*2;
|
cutout_y = gridy_mm - d_wall*2;
|
||||||
|
|
||||||
cut_move(x=0, y=0, w=$gxx, h=$gyy) {
|
cut_move(x=0, y=0, w=$gxx, h=$gyy) {
|
||||||
translate([0,0,-coutout_depth]) {
|
translate([0,0,-coutout_depth]) {
|
||||||
rounded_rectangle(cutout_x, cutout_y, coutout_depth*2, r_base);
|
rounded_rectangle(cutout_x, cutout_y, coutout_depth*2, r_base);
|
||||||
|
|
||||||
pattern_linear(x=n_divx, y=n_divy, sx=(gridx_mm - 2)/n_divx, sy=(gridy_mm - 2)/n_divy)
|
pattern_linear(x=n_divx, y=n_divy, sx=(gridx_mm - 2)/n_divx, sy=(gridy_mm - 2)/n_divy)
|
||||||
rotate(rotation)
|
rotate(rotation)
|
||||||
cylinder(r=cylinder_diameter/2, h=cylinder_height*2, center=true);
|
cylinder(r=cylinder_diameter/2, h=cylinder_height*2, center=true);
|
||||||
|
|
Loading…
Reference in a new issue