mirror of
https://github.com/kennetek/gridfinity-rebuilt-openscad.git
synced 2024-11-14 04:20:51 +00:00
104 lines
2.5 KiB
OpenSCAD
104 lines
2.5 KiB
OpenSCAD
|
|
// height of the base
|
|
h_base = 5;
|
|
// outside rounded radius of bin
|
|
r_base = 4;
|
|
// lower base chamfer "radius"
|
|
r_c1 = 0.8;
|
|
// upper base chamfer "radius"
|
|
r_c2 = 2.4;
|
|
// bottom thiccness of bin
|
|
h_bot = 2.2;
|
|
// outside radii 1
|
|
r_fo1 = 7.5 / 2;
|
|
// outside radii 2
|
|
r_fo2 = 3.2 / 2;
|
|
// outside radii 3
|
|
r_fo3 = 1.6 / 2;
|
|
// length of a grid unit
|
|
l_grid = 42;
|
|
|
|
// ****************************************
|
|
// Magnet / Screw Hole Constants
|
|
// ****************************************
|
|
LAYER_HEIGHT = 0.2;
|
|
MAGNET_HEIGHT = 2;
|
|
|
|
SCREW_HOLE_RADIUS = 3 / 2;
|
|
MAGNET_HOLE_RADIUS = 6.5 / 2;
|
|
MAGNET_HOLE_DEPTH = MAGNET_HEIGHT + (LAYER_HEIGHT * 2);
|
|
|
|
// center-to-center distance between holes
|
|
d_hole = 26;
|
|
// distance of hole from side of bin
|
|
d_hole_from_side=8;
|
|
|
|
// Meassured diameter in Fusion360.
|
|
// Smaller than the magnet to keep it squeezed.
|
|
REFINED_HOLE_RADIUS = 5.86 / 2;
|
|
REFINED_HOLE_HEIGHT = MAGNET_HEIGHT - 0.1;
|
|
// How many layers are between a Gridfinity Refined Hole and the bottom
|
|
REFINED_HOLE_BOTTOM_LAYERS = 2;
|
|
|
|
// Experimentally chosen for a press fit.
|
|
MAGNET_HOLE_CRUSH_RIB_INNER_RADIUS = 5.9 / 2;
|
|
// Mostly arbitrarily chosen.
|
|
// 30 ribs does not print with a 0.4mm nozzle.
|
|
// Anything 5 or under produces a hole that is not round.
|
|
MAGNET_HOLE_CRUSH_RIB_COUNT = 8;
|
|
|
|
MAGNET_HOLE_CHAMFER_ADDITIONAL_RADIUS = 0.8;
|
|
MAGNET_HOLE_CHAMFER_ANGLE = 50;
|
|
|
|
// ****************************************
|
|
|
|
// top edge fillet radius
|
|
r_f1 = 0.6;
|
|
// internal fillet radius
|
|
r_f2 = 2.8;
|
|
|
|
// width of divider between compartments
|
|
d_div = 1.2;
|
|
// minimum wall thickness
|
|
d_wall = 0.95;
|
|
// tolerance fit factor
|
|
d_clear = 0.25;
|
|
|
|
// height of tab (yaxis, measured from inner wall)
|
|
d_tabh = 15.85;
|
|
// maximum width of tab
|
|
d_tabw = 42;
|
|
// angle of tab
|
|
a_tab = 36;
|
|
// lip height
|
|
h_lip = 3.548;
|
|
|
|
d_wall2 = r_base-r_c1-d_clear*sqrt(2);
|
|
d_magic = -2*d_clear-2*d_wall+d_div;
|
|
|
|
// Baseplate constants
|
|
|
|
// Baseplate bottom part height (part added with weigthed=true)
|
|
bp_h_bot = 6.4;
|
|
// Baseplate bottom cutout rectangle size
|
|
bp_cut_size = 21.4;
|
|
// Baseplate bottom cutout rectangle depth
|
|
bp_cut_depth = 4;
|
|
// Baseplate bottom cutout rounded thingy width
|
|
bp_rcut_width = 8.5;
|
|
// Baseplate bottom cutout rounded thingy left
|
|
bp_rcut_length = 4.25;
|
|
// Baseplate bottom cutout rounded thingy depth
|
|
bp_rcut_depth = 2;
|
|
// Baseplate clearance offset
|
|
bp_xy_clearance = 0.5;
|
|
// countersink diameter for baseplate
|
|
d_cs = 2.5;
|
|
// radius of cutout for skeletonized baseplate
|
|
r_skel = 2;
|
|
// baseplate counterbore radius
|
|
r_cb = 2.75;
|
|
// baseplate counterbore depth
|
|
h_cb = 3;
|
|
// minimum baseplate thickness (when skeletonized)
|
|
h_skel = 1;
|