Make scoop customizable

This commit is contained in:
Miguel Camba 2023-01-31 20:56:36 +01:00
parent c9b8df69e3
commit 7430123683
2 changed files with 2 additions and 1 deletions

View file

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

View file

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