Cleanup debug and implement in bins

This commit is contained in:
Gio 2024-09-13 03:06:15 +01:00
parent 758e98dcc8
commit 9f8097d4e5
2 changed files with 6 additions and 4 deletions

View file

@ -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.
@ -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);
}

View file

@ -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 {