Fixed lip and scoop parameters in lite bins

This commit is contained in:
K Hodson 2023-02-14 15:17:06 -07:00
parent ae03f164f0
commit ea200b3971

View file

@ -33,8 +33,8 @@ divy = 2;
/* [Toggles] */ /* [Toggles] */
// snap gridz height to nearest 7mm increment // snap gridz height to nearest 7mm increment
enable_zsnap = false; enable_zsnap = false;
// enable upper lip for stacking other bins // how should the top lip act
enable_lip = true; style_lip = 0; //[0: Regular lip, 1:remove lip subtractively, 2: remove lip and retain height]
/* [Other] */ /* [Other] */
// determine what the variable "gridz" applies to based on your use case // determine what the variable "gridz" applies to based on your use case
@ -54,17 +54,17 @@ div_base_y = 0;
// Input all the cutter types in here // Input all the cutter types in here
color("tomato") color("tomato")
gridfinityLite(gridx, gridy, gridz, gridz_define, enable_lip, enable_zsnap, length, div_base_x, div_base_y, style_hole) { gridfinityLite(gridx, gridy, gridz, gridz_define, style_lip, enable_zsnap, length, div_base_x, div_base_y, style_hole) {
cutEqual(n_divx = divx, n_divy = divy, style_tab = style_tab, enable_scoop = false); cutEqual(n_divx = divx, n_divy = divy, style_tab = style_tab, scoop_weight = 0);
} }
// ===== CONSTRUCTION ===== // // ===== CONSTRUCTION ===== //
module gridfinityLite(gridx, gridy, gridz, gridz_define, enable_lip, enable_zsnap, length, div_base_x, div_base_y, style_hole) { module gridfinityLite(gridx, gridy, gridz, gridz_define, style_lip, enable_zsnap, length, div_base_x, div_base_y, style_hole) {
difference() { difference() {
union() { union() {
gridfinityInit(gridx, gridy, height(gridz, gridz_define, enable_lip, enable_zsnap), 0, length) gridfinityInit(gridx, gridy, height(gridz, gridz_define, style_lip, enable_zsnap), 0, length)
children(); children();
gridfinityBase(gridx, gridy, length, div_base_x, div_base_y, style_hole); gridfinityBase(gridx, gridy, length, div_base_x, div_base_y, style_hole);
} }