Merge pull request #189 from Rocka84/customizer-decimals

allow decimals for some values in the customizer
This commit is contained in:
Ruud 2024-08-08 13:27:34 +02:00 committed by GitHub
commit e21bd3ba16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,7 @@ include <gridfinity-rebuilt-utility.scad>
the magnet holes can have an extra cut in them to make it easier to print without supports the magnet holes can have an extra cut in them to make it easier to print without supports
tabs will automatically be disabled when gridz is less than 3, as the tabs take up too much space tabs will automatically be disabled when gridz is less than 3, as the tabs take up too much space
base functions can be found in "gridfinity-rebuilt-utility.scad" base functions can be found in "gridfinity-rebuilt-utility.scad"
comments like ' //.5' after variables are intentional and used by the customizer
examples at end of file examples at end of file
BIN HEIGHT BIN HEIGHT
@ -25,15 +26,15 @@ https://github.com/kennetek/gridfinity-rebuilt-openscad
/* [Setup Parameters] */ /* [Setup Parameters] */
$fa = 8; $fa = 8;
$fs = 0.25; $fs = 0.25; // .01
/* [General Settings] */ /* [General Settings] */
// number of bases along x-axis // number of bases along x-axis
gridx = 3; gridx = 3; //.5
// number of bases along y-axis // number of bases along y-axis
gridy = 2; gridy = 2; //.5
// bin height. See bin height information and "gridz_define" below. // bin height. See bin height information and "gridz_define" below.
gridz = 6; gridz = 6; //.1
/* [Linear Compartments] */ /* [Linear Compartments] */
// number of X Divisions (set to zero to have solid bin) // number of X Divisions (set to zero to have solid bin)
@ -49,13 +50,13 @@ cdivy = 0;
// orientation // orientation
c_orientation = 2; // [0: x direction, 1: y direction, 2: z direction] c_orientation = 2; // [0: x direction, 1: y direction, 2: z direction]
// diameter of cylindrical cut outs // diameter of cylindrical cut outs
cd = 10; cd = 10; // .1
// cylinder height // cylinder height
ch = 1; ch = 1; //.1
// spacing to lid // spacing to lid
c_depth = 1; c_depth = 1;
// chamfer around the top rim of the holes // chamfer around the top rim of the holes
c_chamfer = 0.5; c_chamfer = 0.5; // .1
/* [Height] */ /* [Height] */
// determine what the variable "gridz" applies to based on your use case // determine what the variable "gridz" applies to based on your use case