From 74301236838decbdf344eaa3cbc9c81d1317852e Mon Sep 17 00:00:00 2001 From: Miguel Camba Date: Tue, 31 Jan 2023 20:56:36 +0100 Subject: [PATCH] Make scoop customizable --- gridfinity-rebuilt-bins.scad | 1 + gridfinity-rebuilt-utility.scad | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gridfinity-rebuilt-bins.scad b/gridfinity-rebuilt-bins.scad index fcde484..a777edb 100644 --- a/gridfinity-rebuilt-bins.scad +++ b/gridfinity-rebuilt-bins.scad @@ -26,6 +26,7 @@ https://github.com/kennetek/gridfinity-rebuilt-openscad /* [Setup Parameters] */ $fa = 8; $fs = 0.25; +$scoop_percentage = 100; /* [General Settings] */ // number of bases along x-axis diff --git a/gridfinity-rebuilt-utility.scad b/gridfinity-rebuilt-utility.scad index f104225..f1826aa 100644 --- a/gridfinity-rebuilt-utility.scad +++ b/gridfinity-rebuilt-utility.scad @@ -346,7 +346,7 @@ module fillet_cutter(t = 0, c = "goldenrod") { } module profile_cutter(h, l, s) { - scoop = s ? (length*(($dh-2)/7+1)/12-r_f2) : 0; + scoop = s ? (length*(($dh * ($scoop_percentage / 100)-2)/7+1)/12-r_f2) : 0; translate([r_f2,r_f2]) hull() { if (l-scoop-2*r_f2 > 0)