Skip to content

Commit

Permalink
Cleanup debug and implement in bins
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanH committed Sep 16, 2024
1 parent 758e98d commit 9f8097d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion gridfinity-rebuilt-bins.scad
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ div_base_y = 0;
/* [Base Hole Options] */
// only cut magnet/screw holes at the corners of the bin to save uneccesary print time
only_corners = false;
// Only cut magnet/screw holes at the edges of the bin to save print time. Not compatible with only_corners!
only_edges = false;
//Use gridfinity refined hole style. Not compatible with magnet_holes!
refined_holes = true;
// Base will have holes for 6mm Diameter x 2mm high magnets.
Expand Down Expand Up @@ -112,7 +114,7 @@ gridfinityInit(gridx, gridy, height(gridz, gridz_define, style_lip, enable_zsnap
cutCylinders(n_divx=cdivx, n_divy=cdivy, cylinder_diameter=cd, cylinder_height=ch, coutout_depth=c_depth, orientation=c_orientation, chamfer=c_chamfer);
}
}
gridfinityBase(gridx, gridy, l_grid, div_base_x, div_base_y, hole_options, only_corners=only_corners);
gridfinityBase(gridx, gridy, l_grid, div_base_x, div_base_y, hole_options, only_corners=only_corners, only_edges=only_edges);
}


Expand Down
6 changes: 3 additions & 3 deletions gridfinity-rebuilt-utility.scad
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@ module gridfinityBase(gx, gy, l, dx, dy, hole_options=bundle_hole_options(), off
else if (only_edges) {
pattern_linear(gx/dbnx, gy/dbny, dbnx*l, dbny*l)
block_base(gx, gy, l, dbnx, dbny, hole_options, off);

intersection() {
pattern_linear(gx/dbnx, gy/dbny, dbnx*l, dbny*l)
block_base(gx, gy, l, dbnx, dbny, bundle_hole_options(), off);
# cube([(gx-1)*l, (gy-1)*l, 14], center=true);

cube([(gx-1)*l, (gy-1)*l, 14], center=true);
}
}
else {
Expand Down

0 comments on commit 9f8097d

Please sign in to comment.